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/remount-fs/remount-fs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/remount-fs') diff --git a/src/remount-fs/remount-fs.c b/src/remount-fs/remount-fs.c index ece7f2955d..5eb1404670 100644 --- a/src/remount-fs/remount-fs.c +++ b/src/remount-fs/remount-fs.c @@ -29,9 +29,7 @@ static int run(int argc, char *argv[]) { struct mntent* me; int r; - log_set_target(LOG_TARGET_AUTO); - log_parse_environment(); - log_open(); + log_setup_service(); if (argc > 1) { log_error("This program takes no arguments."); -- cgit v1.2.1