Merge branch 'azerothcore:master' into Playerbot

This commit is contained in:
ZhengPeiRu21
2022-05-19 12:55:28 -06:00
committed by GitHub
80 changed files with 280 additions and 175 deletions

View File

@@ -199,7 +199,8 @@ int main(int argc, char** argv)
// Init all logs
sLog->RegisterAppender<AppenderDB>();
sLog->Initialize();
// If logs are supposed to be handled async then we need to pass the IoContext into the Log singleton
sLog->Initialize(sConfigMgr->GetOption<bool>("Log.Async.Enable", false) ? ioContext.get() : nullptr);
Acore::Banner::Show("worldserver-daemon",
[](std::string_view text)
@@ -422,6 +423,8 @@ int main(int argc, char** argv)
// Shutdown starts here
threadPool.reset();
sLog->SetSynchronous();
sScriptMgr->OnShutdown();
// set server offline

View File

@@ -3914,6 +3914,16 @@ Logger.module=4,Console Server
#Logger.vehicles=4,Console Server
#Logger.warden=4,Console Server
#Logger.weather=4,Console Server
#
# Log.Async.Enable
# Description: Enables asynchronous message logging.
# Default: 0 - (Disabled)
# 1 - (Enabled)
Log.Async.Enable = 0
#
###################################################################################################
###################################################################################################