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
@@ -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<uint8>(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<uint8>(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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user