From 5c46b2e7ddbd88093ff28a11e7f2e8c70d6c13b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 21 Dec 2012 18:54:36 +0000 Subject: 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 --- protocols/FacebookRM/src/events.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/events.cpp') 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 . 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) -- cgit v1.2.3