mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
made some output just show up on debug
This commit is contained in:
parent
1359db5476
commit
7a20c313ee
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue