]> gitweb.hamatoma.de Git - cpidjinn/commitdiff
logging improvements
authorhama <hama@siduction.net>
Wed, 6 Jul 2016 17:44:44 +0000 (19:44 +0200)
committerhama <hama@siduction.net>
Wed, 6 Jul 2016 17:44:44 +0000 (19:44 +0200)
Server/tcpserver.cpp

index c5b4cc1d1c2312dc83394590ee5c2be31f24c85a..be8e3a6fa55c95a666959355ba5c72dd12943fed 100644 (file)
@@ -178,8 +178,8 @@ void TcpServer::listen(){
                                                int sent;
                                                while ( (sent = ::send (connectionSocket, m_buffer.str() + offset,
                                                                                   m_buffer.length() - offset, 0)) > 0){
-                                                       m_logger->sayf(LOG_DEBUG, "sent: %d / %d", sent,
-                                                               m_buffer.length() - offset);
+                                                       m_logger->sayf(LOG_DEBUG, "sent: %.4s[%d/%d]",
+                                                               m_buffer.str(), sent, m_buffer.length() - offset);
                                                        if (offset + sent >= m_buffer.length())
                                                                break;
                                                        offset += sent;