From 1cd7898c01b6cfcdcd0314a3d79bf8a86aa1e619 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 10 Jul 2024 14:51:29 +0200 Subject: 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) --- src/common/Logging/Log.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/common/Logging/Log.h') diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h index dd6149f42b0..9f9634a40ae 100644 --- a/src/common/Logging/Log.h +++ b/src/common/Logging/Log.h @@ -90,7 +90,7 @@ class TC_COMMON_API Log this->OutCommandImpl(account, fmt, Trinity::MakeFormatArgs(args...)); } - void OutCharDump(char const* str, uint32 account_id, uint64 guid, char const* name); + void OutCharDump(std::string const& str, uint32 account_id, uint64 guid, std::string const& name) const; void SetRealmId(uint32 id); @@ -126,7 +126,6 @@ class TC_COMMON_API Log private: static std::string GetTimestampStr(); - void write(Logger const* logger, std::unique_ptr msg) const; Logger const* GetLoggerByType(std::string_view type) const; Appender* GetAppenderByName(std::string_view name); -- cgit v1.2.3