summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WASocketConnection.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-07 19:36:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-07 19:36:41 +0000
commit5b304799fb995811a8686bab9e877cb235c21a2e (patch)
tree0e212481e8b6b92b82ae10fa6b6896f565e64bb4 /protocols/WhatsApp/src/WASocketConnection.cpp
parent9540f9a510f3eaab57285c56198d270c648d54a1 (diff)
correct log format
git-svn-id: http://svn.miranda-ng.org/main/trunk@12044 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/WASocketConnection.cpp')
-rw-r--r--protocols/WhatsApp/src/WASocketConnection.cpp6
1 files changed, 3 insertions, 3 deletions
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()