diff options
Diffstat (limited to 'server/src/tcpsocket.cc')
-rw-r--r-- | server/src/tcpsocket.cc | 8 |
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; } |