From: <dil...@us...> - 2013-09-19 20:00:53
|
Revision: 6418 http://sourceforge.net/p/freeorion/code/6418 Author: dilvish-fo Date: 2013-09-19 20:00:48 +0000 (Thu, 19 Sep 2013) Log Message: ----------- limited the default network message tracing to not log the full messages (which are often very bulky and unreadable) Modified Paths: -------------- trunk/FreeOrion/network/ServerNetworking.cpp Modified: trunk/FreeOrion/network/ServerNetworking.cpp =================================================================== --- trunk/FreeOrion/network/ServerNetworking.cpp 2013-09-18 14:48:48 UTC (rev 6417) +++ trunk/FreeOrion/network/ServerNetworking.cpp 2013-09-19 20:00:48 UTC (rev 6418) @@ -158,9 +158,12 @@ } else { assert(static_cast<int>(bytes_transferred) <= m_incoming_header_buffer[4]); if (static_cast<int>(bytes_transferred) == m_incoming_header_buffer[4]) { - if (TRACE_EXECUTION) + if (TRACE_EXECUTION) { Logger().debugStream() << "PlayerConnection::HandleMessageBodyRead(): " - << "received message " << m_incoming_message; + << "received message of type " << m_incoming_message.Type() + << "; and size "<< m_incoming_message.Size(); + //Logger().debugStream() << " Full message: " << m_incoming_message; + } if (EstablishedPlayer()) { EventSignal(boost::bind(m_player_message_callback, m_incoming_message, |