mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +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.");
|
sLog->outError("World settings reload fail: can't read settings.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sLog->ReloadConfig(); // Reload log levels and filters
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sScriptMgr->OnBeforeConfigLoad(reload);
|
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
|
///- Read the player limit and the Message of the day from the config file
|
||||||
if (!reload)
|
if (!reload)
|
||||||
SetPlayerAmountLimit(sConfigMgr->GetIntDefault("PlayerLimit", 100));
|
SetPlayerAmountLimit(sConfigMgr->GetIntDefault("PlayerLimit", 100));
|
||||||
|
|||||||
Reference in New Issue
Block a user