[CORE] force reloading of logs configurations at start
allowing sScriptMgr to change logs confs
This commit is contained in:
parent
be9627d0d0
commit
2b5605da5c
1 changed files with 5 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue