main: (order) early call _init_nm_debug()

_init_nm_debug() only depends on DEBUG config setting.
Let's call it first after parsing configuration.

(cherry picked from commit 3696c675fe)
This commit is contained in:
Thomas Haller 2015-03-13 23:19:58 +01:00
parent ed26762e13
commit 3aad126ec1

View file

@ -335,6 +335,8 @@ main (int argc, char *argv[])
exit (1);
}
_init_nm_debug (nm_config_get_debug (config));
/* Initialize logging from config file *only* if not explicitly
* specified by commandline.
*/
@ -377,8 +379,6 @@ main (int argc, char *argv[])
wrote_pidfile = nm_main_utils_write_pidfile (global_opt.pidfile);
}
_init_nm_debug (nm_config_get_debug (config));
/* Set up unix signal handling - before creating threads, but after daemonizing! */
if (!nm_main_utils_setup_signals (main_loop, &quit_early))
exit (1);