mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
[CORE] force reloading of logs configurations at start
allowing sScriptMgr to change logs confs
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user