mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Logs: Allow to log startup logs into Database appender
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user