From 5b304799fb995811a8686bab9e877cb235c21a2e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Feb 2015 19:36:41 +0000 Subject: correct log format git-svn-id: http://svn.miranda-ng.org/main/trunk@12044 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WASocketConnection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/WhatsApp/src/WASocketConnection.cpp') diff --git a/protocols/WhatsApp/src/WASocketConnection.cpp b/protocols/WhatsApp/src/WASocketConnection.cpp index 00e3aa9933..3d8744a91f 100644 --- a/protocols/WhatsApp/src/WASocketConnection.cpp +++ b/protocols/WhatsApp/src/WASocketConnection.cpp @@ -106,7 +106,7 @@ unsigned char WASocketConnection::read() int WASocketConnection::read(unsigned char *buf, int length) { - int result = Netlib_Recv(this->hConn, (char*)buf, length, 0); + int result = Netlib_Recv(this->hConn, (char*)buf, length, MSG_NODUMP); if (result <= 0) throw WAException(getLastErrorMsg(), WAException::SOCKET_EX, WAException::SOCKET_EX_RECV); @@ -134,9 +134,9 @@ void WASocketConnection::forceShutdown() Netlib_Shutdown(this->hConn); } -void WASocketConnection::log(const char *str) +void WASocketConnection::log(const char *prefix, const char *str) { - Netlib_Logf(WASocketConnection::hNetlibUser, "STR: %s", str); + Netlib_Logf(WASocketConnection::hNetlibUser, "%s%s", prefix, str); } WASocketConnection::~WASocketConnection() -- cgit v1.2.3