mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Replaced the LogWorker thread with Boost ASIO
This commit is contained in:
@@ -145,6 +145,12 @@ extern int main(int argc, char** argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (sConfigMgr->GetBoolDefault("Log.Async.Enable", false))
|
||||
{
|
||||
// If logs are supposed to be handled async then we need to pass the io_service into the Log singleton
|
||||
Log::instance(&_ioService);
|
||||
}
|
||||
|
||||
TC_LOG_INFO("server.worldserver", "%s (worldserver-daemon)", _FULLVERSION);
|
||||
TC_LOG_INFO("server.worldserver", "<Ctrl-C> to stop.\n");
|
||||
TC_LOG_INFO("server.worldserver", " ______ __");
|
||||
|
||||
Reference in New Issue
Block a user