Core/Logging: Removed one layer of allocations from log message writes (async doesn't wrap in shared_ptr anymore and sync creates LogMessage on the stack)

This commit is contained in:
Shauren
2024-07-10 14:51:29 +02:00
parent e05d194da3
commit 1cd7898c01
5 changed files with 39 additions and 36 deletions

View File

@@ -1056,7 +1056,7 @@ void WorldSession::HandleCharDeleteOpcode(WorldPackets::Character::CharDelete& c
{
std::string dump;
if (PlayerDumpWriter().GetDump(charDelete.Guid.GetCounter(), dump))
sLog->OutCharDump(dump.c_str(), accountId, charDelete.Guid.GetCounter(), name.c_str());
sLog->OutCharDump(dump, accountId, charDelete.Guid.GetCounter(), name);
}
sCalendarMgr->RemoveAllPlayerEventsAndInvites(charDelete.Guid);