feat(Modules): load modules configs before Log initialization (#6104)
in order to properly load modules appenders and loggers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user