mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 11:58:12 +02:00
main: (order) early call _init_nm_debug()
_init_nm_debug() only depends on DEBUG config setting. Let's call it first after parsing configuration.
This commit is contained in:
parent
c50622c845
commit
3696c675fe
1 changed files with 2 additions and 2 deletions
|
|
@ -343,6 +343,8 @@ main (int argc, char *argv[])
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_init_nm_debug (nm_config_get_debug (config));
|
||||||
|
|
||||||
/* Initialize logging from config file *only* if not explicitly
|
/* Initialize logging from config file *only* if not explicitly
|
||||||
* specified by commandline.
|
* specified by commandline.
|
||||||
*/
|
*/
|
||||||
|
|
@ -385,8 +387,6 @@ main (int argc, char *argv[])
|
||||||
wrote_pidfile = nm_main_utils_write_pidfile (global_opt.pidfile);
|
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! */
|
/* Set up unix signal handling - before creating threads, but after daemonizing! */
|
||||||
nm_main_utils_setup_signals (main_loop);
|
nm_main_utils_setup_signals (main_loop);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue