mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf.
This commit is contained in:
@@ -213,7 +213,7 @@ void AuthSocket::OnAccept(void)
|
||||
|
||||
void AuthSocket::OnClose(void)
|
||||
{
|
||||
sLog->outDebug("AuthSocket::OnClose");
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "AuthSocket::OnClose");
|
||||
}
|
||||
|
||||
// Read the packet from the client
|
||||
@@ -420,7 +420,7 @@ bool AuthSocket::_HandleLogonChallenge()
|
||||
std::string databaseV = fields[5].GetString();
|
||||
std::string databaseS = fields[6].GetString();
|
||||
|
||||
sLog->outDebug("database authentication values: v='%s' s='%s'", databaseV.c_str(), databaseS.c_str());
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "database authentication values: v='%s' s='%s'", databaseV.c_str(), databaseS.c_str());
|
||||
|
||||
// multiply with 2 since bytes are stored as hexstring
|
||||
if (databaseV.size() != s_BYTE_SIZE * 2 || databaseS.size() != s_BYTE_SIZE * 2)
|
||||
@@ -505,7 +505,7 @@ bool AuthSocket::_HandleLogonProof()
|
||||
if (_expversion == NO_VALID_EXP_FLAG)
|
||||
{
|
||||
// Check if we have the appropriate patch on the disk
|
||||
sLog->outDebug("Client with invalid version, patching is not implemented");
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "Client with invalid version, patching is not implemented");
|
||||
socket().shutdown();
|
||||
return true;
|
||||
}
|
||||
@@ -1017,7 +1017,7 @@ void Patcher::LoadPatchMD5(char *szFileName)
|
||||
std::string path = "./patches/";
|
||||
path += szFileName;
|
||||
FILE *pPatch = fopen(path.c_str(), "rb");
|
||||
sLog->outDebug("Loading patch info from %s\n", path.c_str());
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "Loading patch info from %s\n", path.c_str());
|
||||
|
||||
if (!pPatch)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user