Do not use the logger before the configuration has been loaded first
This commit is contained in:
+1
-1
@@ -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("");
|
||||||
|
|||||||
Reference in New Issue
Block a user