From 62ba3d8b4ee2e2acd0d574600137dbdd65b92f50 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 27 Oct 2025 00:52:51 +0200 Subject: Tools/mmaps_generator: Enable async console logging --- src/common/Logging/Log.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/common/Logging/Log.cpp') diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp index 4514fbabd1a..6ec978c3206 100644 --- a/src/common/Logging/Log.cpp +++ b/src/common/Logging/Log.cpp @@ -366,14 +366,18 @@ Log* Log::instance() noexcept } void Log::Initialize(Trinity::Asio::IoContext* ioContext) +{ + SetAsynchronous(ioContext); + LoadFromConfig(); +} + +void Log::SetAsynchronous(Trinity::Asio::IoContext* ioContext) { if (ioContext) { _ioContext = ioContext; _strand = new Trinity::Asio::Strand(*ioContext); } - - LoadFromConfig(); } void Log::SetSynchronous() -- cgit v1.2.3