]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal-remote/journal-gatewayd.c
log: introduce new helper call log_setup_service()
[thirdparty/systemd.git] / src / journal-remote / journal-gatewayd.c
index a4e25f228498b1c0236509b5ad062df2f104417e..71553083d9db59fb99a0f021c72a2050477208e0 100644 (file)
@@ -990,9 +990,7 @@ int main(int argc, char *argv[]) {
         struct MHD_Daemon *d = NULL;
         int r, n;
 
-        log_set_target(LOG_TARGET_AUTO);
-        log_parse_environment();
-        log_open();
+        log_setup_service();
 
         r = parse_argv(argc, argv);
         if (r < 0)