summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2008-09-22 12:15:34 +0000
committerdeva <deva>2008-09-22 12:15:34 +0000
commit8352be99474fbbeed5795e8610b3d9a23e38b1cd (patch)
tree906d8a6375e107fd697a0a6de396b1afbbdba6d7
parent04dcb6600bcab8d0722cd2198d7b5324b55006e5 (diff)
Added debug output to tcpsocket (print the xml to stdout after sending it to the client).
-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;
}