From e07e20ffcaf6911d4dd47e0895fbdc52c5a52f05 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sun, 20 Feb 2011 20:16:34 +0100 Subject: Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf. --- src/server/authserver/Server/AuthSocket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/authserver/Server/AuthSocket.cpp') diff --git a/src/server/authserver/Server/AuthSocket.cpp b/src/server/authserver/Server/AuthSocket.cpp index 0b7a49fe74a..7fa8bbd76e3 100755 --- a/src/server/authserver/Server/AuthSocket.cpp +++ b/src/server/authserver/Server/AuthSocket.cpp @@ -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) { -- cgit v1.2.3