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/user-sessions/user-sessions.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/user-sessions') diff --git a/src/user-sessions/user-sessions.c b/src/user-sessions/user-sessions.c index 89c4b0005..fa0829e38 100644 --- a/src/user-sessions/user-sessions.c +++ b/src/user-sessions/user-sessions.c @@ -19,9 +19,7 @@ int main(int argc, char*argv[]) { return EXIT_FAILURE; } - log_set_target(LOG_TARGET_AUTO); - log_parse_environment(); - log_open(); + log_setup_service(); umask(0022); -- cgit v1.2.3-65-gdbad