summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/events.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2012-12-21 18:54:36 +0000
committerRobert Pösel <robyer@seznam.cz>2012-12-21 18:54:36 +0000
commit5c46b2e7ddbd88093ff28a11e7f2e8c70d6c13b1 (patch)
treee18a35c2d32ce0e3c9bbede066f9863713f59204 /protocols/FacebookRM/src/events.cpp
parentaf1424f225d57168297e1be919343ff7d8e25d11 (diff)
Facebook: If enabled logging, write also into network log
git-svn-id: http://svn.miranda-ng.org/main/trunk@2780 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/events.cpp')
-rw-r--r--protocols/FacebookRM/src/events.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/events.cpp b/protocols/FacebookRM/src/events.cpp
index 5d01df88df..3014c570b9 100644
--- a/protocols/FacebookRM/src/events.cpp
+++ b/protocols/FacebookRM/src/events.cpp
@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
int FacebookProto::Log(const char *fmt,...)
{
- if ( !getByte( FACEBOOK_KEY_LOGGING_ENABLE, 0 ))
+ if (!getByte(FACEBOOK_KEY_LOGGING_ENABLE, 0))
return EXIT_SUCCESS;
va_list va;
@@ -35,7 +35,11 @@ int FacebookProto::Log(const char *fmt,...)
mir_vsnprintf(text,sizeof(text),fmt,va);
va_end(va);
- return utils::debug::log( m_szModuleName, text );
+ // Write into network log
+ CallService(MS_NETLIB_LOG, (WPARAM)m_hNetlibUser, (LPARAM)text);
+
+ // Write into log file
+ return utils::debug::log(m_szModuleName, text);
}
LRESULT CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)