summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/tcpsocket.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/tcpsocket.cc b/server/src/tcpsocket.cc
index b6049c7..b10f064 100644
--- a/server/src/tcpsocket.cc
+++ b/server/src/tcpsocket.cc
@@ -319,7 +319,13 @@ int TCPSocket::write(char *data, int size)
throw TCPWriteException(strerror(errno));
}
- printf("Outputted %d byes\n", res);
+#ifdef WITH_DEBUG
+ std::string blah;
+ blah.append(data, size);
+ printf(blah.c_str());
+
+ // printf("Outputted %d bytes\n", res);
+#endif/*WITH_DEBUG*/
return res;
}