feat(Modules): load modules configs before Log initialization (#6104)

in order to properly load modules appenders and loggers
This commit is contained in:
UltraNix
2021-06-04 23:57:10 +02:00
committed by GitHub
parent 196f74fdad
commit c568bdcc42
4 changed files with 15 additions and 9 deletions

View File

@@ -58,6 +58,8 @@ public:
bool isDryRun() { return dryRun; }
void setDryRun(bool mode) { dryRun = mode; }
void PrintLoadedModulesConfigs();
private:
/// Method used only for loading main configuration files (authserver.conf and worldserver.conf)
bool LoadInitial(std::string const& file);
@@ -67,6 +69,8 @@ private:
T GetValueDefault(std::string const& name, T const& def, bool showLogs = true) const;
bool dryRun = false;
std::vector<std::string /*config variant*/> _moduleConfigFiles;
};
class ConfigException : public std::length_error