aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 938aa992..99e52976 100644
--- a/main.c
+++ b/main.c
@@ -165,6 +165,8 @@ main(int argc, char *const *argv)
}
}
+ log_init(as_server ? LOG_FACILITY_DAEMON : LOG_FACILITY_USER, LOG_CLASS_WARNING);
+
argc -= optind;
argv += optind;
@@ -176,8 +178,6 @@ main(int argc, char *const *argv)
struct server *server = NULL;
struct shutdown_context shutdown_ctx = {.term = &term, .exit_code = EXIT_FAILURE};
- log_init(as_server ? LOG_FACILITY_DAEMON : LOG_FACILITY_USER);
-
if ((fdm = fdm_init()) == NULL)
goto out;