Fix reloading config
Fully clear the configuration before reloading, so that when the config is read and merged in there are no existing values which mergeConfig refuses to overwrite.
This commit is contained in:
parent
c6cbf57a38
commit
e3ceaf63d1
|
@ -162,6 +162,7 @@ void Config::load(const std::string &config) {
|
||||||
}
|
}
|
||||||
config_file_ = file.value();
|
config_file_ = file.value();
|
||||||
spdlog::info("Using configuration file {}", config_file_);
|
spdlog::info("Using configuration file {}", config_file_);
|
||||||
|
config_ = Json::Value();
|
||||||
setupConfig(config_, config_file_, 0);
|
setupConfig(config_, config_file_, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue