Core/Log: Implement log masks for debug log level, to allow selective debug output. Update your worldserver.conf.
This commit is contained in:
1 parent
45db1591a4
commit
e07e20ffca
99 files changed
+1046
-1092
No files matched your search
@@ -61,7 +61,7 @@ struct ServerPktHeader
|
||||
uint8 headerIndex=0;
|
||||
if (isLargePacket())
|
||||
{
|
||||
sLog->outDebug("initializing large server to client packet. Size: %u, cmd: %u", size, cmd);
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "initializing large server to client packet. Size: %u, cmd: %u", size, cmd);
|
||||
header[headerIndex++] = 0x80|(0xFF &(size>>16));
|
||||
}
|
||||
header[headerIndex++] = 0xFF &(size>>8);
|
||||
@@ -755,7 +755,7 @@ int WorldSocket::ProcessIncoming (WorldPacket* new_pct)
|
||||
opcode, GetRemoteAddress().c_str(), m_Session?m_Session->GetAccountId():-1);
|
||||
if (sLog->IsOutDebug())
|
||||
{
|
||||
sLog->outDebug("Dumping error causing packet:");
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "Dumping error causing packet:");
|
||||
new_pct->hexlike();
|
||||
}
|
||||
|
||||
@@ -934,7 +934,7 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
|
||||
|
||||
// Check locked state for server
|
||||
AccountTypes allowedAccountType = sWorld->GetPlayerSecurityLimit();
|
||||
sLog->outDebug("Allowed Level: %u Player Level %u", allowedAccountType, AccountTypes(security));
|
||||
sLog->outDebug(LOG_FILTER_NETWORKIO, "Allowed Level: %u Player Level %u", allowedAccountType, AccountTypes(security));
|
||||
if (allowedAccountType > SEC_PLAYER && AccountTypes(security) < allowedAccountType)
|
||||
{
|
||||
WorldPacket Packet (SMSG_AUTH_RESPONSE, 1);
|
||||
|
||||
Reference in new issue
Block a user