Replaced the LogWorker thread with Boost ASIO

This commit is contained in:
leak committed 2014-07-08 20:55:25 +02:00
1 parent c24bf2f028
commit d1594998f8
7 files changed
+31 -115

No files matched your search

+6
View File
@@ -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", " ______ __");