summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-03-13 23:19:58 +0100
committerThomas Haller <thaller@redhat.com>2015-03-20 11:43:30 +0100
commit3696c675fe9fd17efe04d89ef0944de3dff8fd4f (patch)
tree14f438e5966df344235580ac87b88324dc8c3a9b /src/main.c
parentc50622c84566363c6a0309150800c660c7fd589b (diff)
downloadNetworkManager-3696c675fe9fd17efe04d89ef0944de3dff8fd4f.tar.gz
main: (order) early call _init_nm_debug()
_init_nm_debug() only depends on DEBUG config setting. Let's call it first after parsing configuration.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index f02421df61..f34302d23b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -343,6 +343,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.
*/
@@ -385,8 +387,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! */
nm_main_utils_setup_signals (main_loop);