[CORE] force reloading of logs configurations at start

allowing sScriptMgr to change logs confs
This commit is contained in:
Yehonal
2016-08-06 20:50:35 +02:00
parent be9627d0d0
commit 2b5605da5c

View File

@@ -432,12 +432,15 @@ void World::LoadConfigSettings(bool reload)
sLog->outError("World settings reload fail: can't read settings.");
return;
}
sLog->ReloadConfig(); // Reload log levels and filters
}
sScriptMgr->OnBeforeConfigLoad(reload);
// Reload log levels and filters
// doing it again to allow sScriptMgr
// to change log confs at start
sLog->ReloadConfig();
///- Read the player limit and the Message of the day from the config file
if (!reload)
SetPlayerAmountLimit(sConfigMgr->GetIntDefault("PlayerLimit", 100));