From d1677b2db08f71a5bddedd9659cc5a66f325f47f Mon Sep 17 00:00:00 2001 From: Spp Date: Mon, 13 May 2013 15:07:36 +0200 Subject: Core/Logging: Performance-related tweaks to logging system All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros. Memleak fix --- src/server/shared/Packets/ByteBuffer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/shared/Packets') diff --git a/src/server/shared/Packets/ByteBuffer.cpp b/src/server/shared/Packets/ByteBuffer.cpp index 3b4be003858..43d147727f6 100644 --- a/src/server/shared/Packets/ByteBuffer.cpp +++ b/src/server/shared/Packets/ByteBuffer.cpp @@ -61,7 +61,7 @@ void ByteBuffer::print_storage() const o << read(i) << " - "; o << " "; - sLog->outTrace(LOG_FILTER_NETWORKIO, "%s", o.str().c_str()); + TC_LOG_TRACE(LOG_FILTER_NETWORKIO, "%s", o.str().c_str()); } void ByteBuffer::textlike() const @@ -78,7 +78,7 @@ void ByteBuffer::textlike() const o << buf; } o << " "; - sLog->outTrace(LOG_FILTER_NETWORKIO, "%s", o.str().c_str()); + TC_LOG_TRACE(LOG_FILTER_NETWORKIO, "%s", o.str().c_str()); } void ByteBuffer::hexlike() const @@ -110,5 +110,5 @@ void ByteBuffer::hexlike() const o << buf; } o << " "; - sLog->outTrace(LOG_FILTER_NETWORKIO, "%s", o.str().c_str()); + TC_LOG_TRACE(LOG_FILTER_NETWORKIO, "%s", o.str().c_str()); } -- cgit v1.2.3