From 945452539db037552067a15ad4ad8bd90948817c Mon Sep 17 00:00:00 2001 From: hama Date: Wed, 6 Jul 2016 19:44:44 +0200 Subject: [PATCH] logging improvements --- Server/tcpserver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5