From: hama Date: Wed, 6 Jul 2016 17:44:44 +0000 (+0200) Subject: logging improvements X-Git-Url: https://gitweb.hamatoma.de/?a=commitdiff_plain;h=945452539db037552067a15ad4ad8bd90948817c;p=cpidjinn logging improvements --- diff --git a/Server/tcpserver.cpp b/Server/tcpserver.cpp index c5b4cc1..be8e3a6 100644 --- a/Server/tcpserver.cpp +++ b/Server/tcpserver.cpp @@ -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;