Added separate log message for disconnecting clients.

This commit is contained in:
hiker
2017-01-30 08:52:41 +11:00
parent cebf24f3af
commit dfc5c1499c

View File

@@ -559,6 +559,10 @@ void* STKHost::mainLoop(void* self)
Log::debug("STKHost", "Addresses are : %lx, %lx",
stk_event->getPeer(), peer);
} // EVENT_TYPE_CONNECTED
else if (stk_event->getType() == EVENT_TYPE_DISCONNECTED)
{
Log::info("STKHost", "A client has just disconnected.");
} // EVENT_TYPE_CONNECTED
else if (stk_event->getType() == EVENT_TYPE_MESSAGE)
{
Network::logPacket(stk_event->data(), true);