mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Tools/mmaps_generator: Enable async console logging
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user