]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/locale/localed.c
log: introduce new helper call log_setup_service()
[thirdparty/systemd.git] / src / locale / localed.c
index 21d1ded65cd26a166368564ea27a34b16bfd6415..bb5b132ce7fc7f3e3ad3655ba0094b7ba4c0e979 100644 (file)
@@ -720,9 +720,7 @@ int main(int argc, char *argv[]) {
         _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
         int r;
 
-        log_set_target(LOG_TARGET_AUTO);
-        log_parse_environment();
-        log_open();
+        log_setup_service();
 
         umask(0022);
         mac_selinux_init();