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/shared/Packets/ByteBuffer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/shared/Packets') diff --git a/src/server/shared/Packets/ByteBuffer.h b/src/server/shared/Packets/ByteBuffer.h index 198772c1d3a..e6672719226 100755 --- a/src/server/shared/Packets/ByteBuffer.h +++ b/src/server/shared/Packets/ByteBuffer.h @@ -416,10 +416,10 @@ class ByteBuffer if(!sLog->IsOutDebug()) // optimize disabled debug output return; - sLog->outDebug("STORAGE_SIZE: %lu", (unsigned long)size() ); + sLog->outDebug(LOG_FILTER_NETWORKIO, "STORAGE_SIZE: %lu", (unsigned long)size() ); for (uint32 i = 0; i < size(); ++i) sLog->outDebugInLine("%u - ", read(i) ); - sLog->outDebug(" "); + sLog->outDebug(LOG_FILTER_NETWORKIO, " "); } void textlike() const @@ -427,10 +427,10 @@ class ByteBuffer if(!sLog->IsOutDebug()) // optimize disabled debug output return; - sLog->outDebug("STORAGE_SIZE: %lu", (unsigned long)size() ); + sLog->outDebug(LOG_FILTER_NETWORKIO, "STORAGE_SIZE: %lu", (unsigned long)size() ); for (uint32 i = 0; i < size(); ++i) sLog->outDebugInLine("%c", read(i) ); - sLog->outDebug(" "); + sLog->outDebug(LOG_FILTER_NETWORKIO, " "); } void hexlike() const @@ -439,7 +439,7 @@ class ByteBuffer return; uint32 j = 1, k = 1; - sLog->outDebug("STORAGE_SIZE: %lu", (unsigned long)size() ); + sLog->outDebug(LOG_FILTER_NETWORKIO, "STORAGE_SIZE: %lu", (unsigned long)size() ); for (uint32 i = 0; i < size(); ++i) { -- cgit v1.2.3