diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-06-06 14:39:29 +0200 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2019-06-06 14:39:29 +0200 |
commit | dbd8b3fc63d1b218df755f34fd7185553f2db3a5 (patch) | |
tree | cfef63fc977bc0dd2f844678eabe41d3a7a180c1 | |
parent | 5016f588d5f20ef8eb0f3da9c3c92bbac8e132ee (diff) |
Core/Logs: Allow to log startup logs into Database appender
-rw-r--r-- | src/server/game/World/World.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index c9bacd4057a..cb26d8a00bf 100644 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -1491,6 +1491,9 @@ void World::LoadConfigSettings(bool reload) /// Initialize the World void World::SetInitialWorldSettings() { + if (uint32 realmId = sConfigMgr->GetIntDefault("RealmID", 0)) // 0 reserved for auth + sLog->SetRealmId(realmId); + ///- Server startup begin uint32 startupBegin = getMSTime(); @@ -2155,9 +2158,6 @@ void World::SetInitialWorldSettings() TC_LOG_INFO("server.worldserver", "World initialized in %u minutes %u seconds", (startupDuration / 60000), ((startupDuration % 60000) / 1000)); TC_METRIC_EVENT("events", "World initialized", "World initialized in " + std::to_string(startupDuration / 60000) + " minutes " + std::to_string((startupDuration % 60000) / 1000) + " seconds"); - - if (uint32 realmId = sConfigMgr->GetIntDefault("RealmID", 0)) // 0 reserved for auth - sLog->SetRealmId(realmId); } void World::DetectDBCLang() |