From 8352be99474fbbeed5795e8610b3d9a23e38b1cd Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 22 Sep 2008 12:15:34 +0000 Subject: Added debug output to tcpsocket (print the xml to stdout after sending it to the client). --- server/src/tcpsocket.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'server') 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; } -- cgit v1.2.3