made some output just show up on debug

This commit is contained in:
oy 2011-01-19 15:39:04 +01:00
parent 1359db5476
commit 7a20c313ee

View file

@ -844,6 +844,8 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
SendMsgEx(&Msg, 0, ClientId, true); SendMsgEx(&Msg, 0, ClientId, true);
} }
else else
{
if(g_Config.m_Debug)
{ {
char aHex[] = "0123456789ABCDEF"; char aHex[] = "0123456789ABCDEF";
char aBuf[512]; char aBuf[512];
@ -858,9 +860,9 @@ void CServer::ProcessClientPacket(CNetChunk *pPacket)
char aBufMsg[256]; char aBufMsg[256];
str_format(aBufMsg, sizeof(aBufMsg), "strange message ClientId=%d msg=%d data_size=%d", ClientId, Msg, pPacket->m_DataSize); str_format(aBufMsg, sizeof(aBufMsg), "strange message ClientId=%d msg=%d data_size=%d", ClientId, Msg, pPacket->m_DataSize);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "server", aBufMsg); Console()->Print(IConsole::OUTPUT_LEVEL_DEBUG, "server", aBufMsg);
Console()->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "server", aBuf); Console()->Print(IConsole::OUTPUT_LEVEL_DEBUG, "server", aBuf);
}
} }
} }
else else