mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Logging: Performance-related tweaks to logging system
All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros.
Memleak fix
This commit is contained in:
@@ -61,7 +61,7 @@ void ByteBuffer::print_storage() const
|
||||
o << read<uint8>(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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user