Use reload_config() in main() to load config and init logging.

Michael
This commit is contained in:
Michael Adam 2009-12-23 00:29:14 +01:00
parent bc10479452
commit 71a035d619

View File

@ -360,13 +360,7 @@ main (int argc, char **argv)
log_message (LOG_INFO, "Initializing " PACKAGE " ...");
ret = reload_config_file(config_defaults.config_file, &config,
&config_defaults);
if (ret != 0) {
exit (EX_SOFTWARE);
}
ret = setup_logging ();
ret = reload_config ();
if (ret != 0) {
exit (EX_SOFTWARE);
}