Do not use the logger before the configuration has been loaded first

This commit is contained in:
louiz’
2016-07-28 11:56:33 +02:00
parent cf9104e3e2
commit 085a48ea48
+1 -1
View File
@@ -50,7 +50,7 @@ static void sigusr_handler(int, siginfo_t*, void*)
int main(int ac, char** av) int main(int ac, char** av)
{ {
const std::string conf_filename = ac > 1 ? av[1] : xdg_config_path("biboumi.cfg"); const std::string conf_filename = ac > 1 ? av[1] : xdg_config_path("biboumi.cfg");
log_info("Using configuration file: ", conf_filename); std::cout << "Using configuration file: " << conf_filename << std::endl;
if (!Config::read_conf(conf_filename)) if (!Config::read_conf(conf_filename))
return config_help(""); return config_help("");