From 6bf3c61c57f1ba439b2124fb89229395a77f8f46 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 20 Nov 2018 11:18:22 +0100 Subject: log: introduce new helper call log_setup_service() Let's reduce the common boilerplate and have a single setup function used by all service code to setup logging. --- src/sulogin-shell/sulogin-shell.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/sulogin-shell') diff --git a/src/sulogin-shell/sulogin-shell.c b/src/sulogin-shell/sulogin-shell.c index a1ea2333de..82481972f0 100644 --- a/src/sulogin-shell/sulogin-shell.c +++ b/src/sulogin-shell/sulogin-shell.c @@ -98,9 +98,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(); print_mode(argc > 1 ? argv[1] : ""); -- cgit v1.2.1