diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-12 18:02:05 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-12 18:02:05 +0000 |
commit | 6773fe45457b8ef6e87efa0b5aecc0899877b247 (patch) | |
tree | 7908ff2f6eda5c31b184015c7dc5a394686232a5 /protocols/Omegle/src/connection.cpp | |
parent | 75815d4ab9a4b54cea03a97277f4d0892f2bdb6b (diff) |
Use protocol Logging API in Omegle
git-svn-id: http://svn.miranda-ng.org/main/trunk@6458 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/src/connection.cpp')
-rw-r--r-- | protocols/Omegle/src/connection.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/protocols/Omegle/src/connection.cpp b/protocols/Omegle/src/connection.cpp index 36deff4f6a..2e760b810e 100644 --- a/protocols/Omegle/src/connection.cpp +++ b/protocols/Omegle/src/connection.cpp @@ -26,7 +26,7 @@ void OmegleProto::SignOn(void*) {
SYSTEMTIME t;
GetLocalTime( &t );
- Log("[%d.%d.%d] Using Omegle Protocol %s", t.wDay, t.wMonth, t.wYear, __VERSION_STRING);
+ debugLogA("[%d.%d.%d] Using Omegle Protocol %s", t.wDay, t.wMonth, t.wYear, __VERSION_STRING);
ScopedLock s(signon_lock_);
@@ -80,9 +80,9 @@ void OmegleProto::StopChat(bool disconnect) UpdateChat(NULL, TranslateT("Disconnecting..."), true);
if (facy.stop())
- LOG("***** Disconnected from stranger %s", facy.chat_id_.c_str());
+ debugLogA("***** Disconnected from stranger %s", facy.chat_id_.c_str());
else
- LOG("***** Error in disconnecting from stranger %s", facy.chat_id_.c_str());
+ debugLogA("***** Error in disconnecting from stranger %s", facy.chat_id_.c_str());
}
if (spy) {
@@ -115,9 +115,9 @@ void OmegleProto::NewChat() UpdateChat(NULL, TranslateT("Disconnecting..."), true);
if (facy.stop())
- LOG("***** Disconnected from stranger %s", facy.chat_id_.c_str());
+ debugLogA("***** Disconnected from stranger %s", facy.chat_id_.c_str());
else
- LOG("***** Error in disconnecting from stranger %s", facy.chat_id_.c_str());
+ debugLogA("***** Error in disconnecting from stranger %s", facy.chat_id_.c_str());
if (facy.state_ == STATE_SPY) {
DeleteChatContact(TranslateT("Stranger 1"));
@@ -137,7 +137,7 @@ void OmegleProto::NewChat() if (facy.start())
{
UpdateChat(NULL, TranslateT("Waiting for Stranger..."), true);
- LOG("***** Waiting for stranger %s", facy.chat_id_.c_str());
+ debugLogA("***** Waiting for stranger %s", facy.chat_id_.c_str());
}
}
else if (facy.state_ == STATE_DISCONNECTING)
@@ -155,7 +155,7 @@ void OmegleProto::NewChat() if (facy.start())
{
UpdateChat(NULL, TranslateT("Waiting for Stranger..."), true);
- LOG("***** Waiting for stranger %s", facy.chat_id_.c_str());
+ debugLogA("***** Waiting for stranger %s", facy.chat_id_.c_str());
ForkThread( &OmegleProto::EventsLoop, this );
}
@@ -168,15 +168,15 @@ void OmegleProto::EventsLoop(void *) ScopedLock s(events_loop_lock_);
time_t tim = ::time(NULL);
- LOG( ">>>>> Entering Omegle::EventsLoop[%d]", tim );
+ debugLogA( ">>>>> Entering Omegle::EventsLoop[%d]", tim );
while ( facy.events())
{
if ( facy.state_ == STATE_INACTIVE || facy.state_ == STATE_DISCONNECTING || !isOnline())
break;
- LOG( "***** OmegleProto::EventsLoop[%d] refreshing...", tim );
+ debugLogA( "***** OmegleProto::EventsLoop[%d] refreshing...", tim );
}
ResetEvent(events_loop_lock_);
- LOG( "<<<<< Exiting OmegleProto::EventsLoop[%d]", tim );
+ debugLogA( "<<<<< Exiting OmegleProto::EventsLoop[%d]", tim );
}
|