mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 04:40:13 +01: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.
(cherry picked from commit 3696c675fe)
This commit is contained in:
parent
ed26762e13
commit
3aad126ec1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue