From e5c5870564f1d49fcc66cd42d17e31fa592cb4f4 Mon Sep 17 00:00:00 2001 From: hiker Date: Wed, 4 Jan 2017 08:11:17 +1100 Subject: [PATCH] Removed debug output. --- src/network/stk_host.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/stk_host.cpp b/src/network/stk_host.cpp index 1c961add5..eff17d7ec 100644 --- a/src/network/stk_host.cpp +++ b/src/network/stk_host.cpp @@ -551,8 +551,6 @@ void* STKHost::mainLoop(void* self) // Create an STKEvent with the event data. This will also // create the peer if it doesn't exist already Event* stk_event = new Event(&event); - Log::verbose("STKHost", "Event of type %d received", - (int)(stk_event->getType())); STKPeer* peer = stk_event->getPeer(); if (stk_event->getType() == EVENT_TYPE_CONNECTED) { @@ -565,11 +563,13 @@ void* STKHost::mainLoop(void* self) { Network::logPacket(stk_event->data(), true); TransportAddress stk_addr(peer->getAddress()); +#ifdef DEBUG_MESSAGE_CONTENT Log::verbose("NetworkManager", "Message, Sender : %s, message:", stk_addr.toString(/*show port*/false).c_str()); Log::verbose("NetworkManager", "%s", stk_event->data().getLogMessage().c_str()); +#endif } // if message event // notify for the event now.