diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-02-15 10:23:58 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-02-15 10:23:58 +0000 |
commit | 39492f39ace0b10ff2ee6c9d61c22f2ac7d4a839 (patch) | |
tree | 011564bfba9b1fa732ed829a2b9c2cac5b6b5822 /protocols/FacebookRM/src/connection.cpp | |
parent | 88c7aa9f7d95fc17e44e0d37a7b35f620bf4ca0b (diff) |
Facebook: Cleanup logging a bit, don't log that much personal info, make it much smaller size
Remove useless stuff (like cookies or status changes), don't log personal like message texts (there is still some personal info like user name etc.), and some other changes...
git-svn-id: http://svn.miranda-ng.org/main/trunk@12118 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r-- | protocols/FacebookRM/src/connection.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp index 4548d2965e..42f1526e38 100644 --- a/protocols/FacebookRM/src/connection.cpp +++ b/protocols/FacebookRM/src/connection.cpp @@ -32,7 +32,7 @@ void FacebookProto::ChangeStatus(void*) if (new_status == ID_STATUS_OFFLINE) { // Logout - debugLogA("##### Beginning SignOff process"); + debugLogA("### Beginning SignOff process"); m_signingOut = true; SetEvent(update_loop_lock_); @@ -80,7 +80,7 @@ void FacebookProto::ChangeStatus(void*) ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); m_signingOut = false; - debugLogA("##### SignOff complete"); + debugLogA("### SignOff complete"); return; } @@ -90,7 +90,7 @@ void FacebookProto::ChangeStatus(void*) GetLocalTime(&t); debugLogA("[%d.%d.%d] Using Facebook Protocol RM %s", t.wDay, t.wMonth, t.wYear, __VERSION_STRING_DOTS); - debugLogA("***** Beginning SignOn process"); + debugLogA("*** Beginning SignOn process"); m_enableChat = getBool(FACEBOOK_KEY_ENABLE_CHATS, DEFAULT_ENABLE_CHATS); @@ -139,13 +139,13 @@ void FacebookProto::ChangeStatus(void*) m_iStatus = m_iDesiredStatus = facy.self_.status_id = ID_STATUS_OFFLINE; ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); - debugLogA("***** SignOn failed"); + debugLogA("*** SignOn failed"); return; } ToggleStatusMenuItems(true); - debugLogA("***** SignOn complete"); + debugLogA("*** SignOn complete"); } m_invisible = (new_status == ID_STATUS_INVISIBLE); @@ -157,13 +157,13 @@ void FacebookProto::ChangeStatus(void*) m_iStatus = facy.self_.status_id = new_status; ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); - debugLogA("***** ChangeStatus complete"); + debugLogA("*** ChangeStatus complete"); } /** Return true on success, false on error. */ bool FacebookProto::NegotiateConnection() { - debugLogA("***** Negotiating connection with Facebook"); + debugLogA("*** Negotiating connection with Facebook"); ptrA username(getStringA(FACEBOOK_KEY_LOGIN)); if (!username || !strlen(username)) { @@ -198,7 +198,7 @@ bool FacebookProto::NegotiateConnection() void FacebookProto::UpdateLoop(void *) { time_t tim = ::time(NULL); - debugLogA(">>>>> Entering Facebook::UpdateLoop[%d]", tim); + debugLogA(">>> Entering Facebook::UpdateLoop[%d]", tim); for (int i = -1; !isOffline(); i = (i + 1) % 50) { @@ -209,20 +209,20 @@ void FacebookProto::UpdateLoop(void *) ProcessFeeds(NULL); } - debugLogA("***** FacebookProto::UpdateLoop[%d] going to sleep...", tim); + debugLogA("*** FacebookProto::UpdateLoop[%d] going to sleep...", tim); if (WaitForSingleObjectEx(update_loop_lock_, GetPollRate() * 1000, true) != WAIT_TIMEOUT) break; - debugLogA("***** FacebookProto::UpdateLoop[%d] waking up...", tim); + debugLogA("*** FacebookProto::UpdateLoop[%d] waking up...", tim); } ResetEvent(update_loop_lock_); - debugLogA("<<<<< Exiting FacebookProto::UpdateLoop[%d]", tim); + debugLogA("<<< Exiting FacebookProto::UpdateLoop[%d]", tim); } void FacebookProto::MessageLoop(void *) { time_t tim = ::time(NULL); - debugLogA(">>>>> Entering Facebook::MessageLoop[%d]", tim); + debugLogA(">>> Entering Facebook::MessageLoop[%d]", tim); while (facy.channel()) { @@ -231,14 +231,14 @@ void FacebookProto::MessageLoop(void *) // If we're not idle, send activity_ping every few minutes... if (!m_idleTS && (::time(NULL) - m_pingTS) > FACEBOOK_PING_TIME) { - debugLogA("***** FacebookProto::MessageLoop[%d] pinging...", tim); + debugLogA("*** FacebookProto::MessageLoop[%d] pinging...", tim); facy.activity_ping(); } - debugLogA("***** FacebookProto::MessageLoop[%d] refreshing...", tim); + debugLogA("*** FacebookProto::MessageLoop[%d] refreshing...", tim); } - debugLogA("<<<<< Exiting FacebookProto::MessageLoop[%d]", tim); + debugLogA("<<< Exiting FacebookProto::MessageLoop[%d]", tim); } BYTE FacebookProto::GetPollRate() |