Skip to content

Commit

Permalink
More debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiker committed Feb 14, 2017
1 parent 69658c5 commit efeea8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/network/stk_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,9 @@ void* STKHost::mainLoop(void* self)
TransportAddress stk_addr(peer->getAddress());
#ifdef DEBUG_MESSAGE_CONTENT
Log::verbose("NetworkManager",
"Message, Sender : %s, message:",
stk_addr.toString(/*show port*/false).c_str());
"Message, Sender : %s time %f message:",
stk_addr.toString(/*show port*/false).c_str(),
StkTime::getRealTime());
Log::verbose("NetworkManager", "%s",
stk_event->data().getLogMessage().c_str());
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/network/stk_peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ void STKPeer::sendPacket(NetworkString *data, bool reliable)
{
data->setToken(m_client_server_token);
TransportAddress a(m_enet_peer->address);
Log::verbose("STKPeer", "sending packet of size %d to %s",
data->size(), a.toString().c_str());
Log::verbose("STKPeer", "sending packet of size %d to %s at %f",
data->size(), a.toString().c_str(),StkTime::getRealTime());

ENetPacket* packet = enet_packet_create(data->getData(),
data->getTotalSize(),
Expand Down

0 comments on commit efeea8e

Please sign in to comment.