summaryrefslogtreecommitdiffstats
path: root/src/sleep/sleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sleep/sleep.c')
-rw-r--r--src/sleep/sleep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
index f1f4da8886..f86d4c628f 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -358,9 +358,7 @@ static int run(int argc, char *argv[]) {
usec_t delay = 0;
int r;
- log_set_target(LOG_TARGET_AUTO);
- log_parse_environment();
- log_open();
+ log_setup_service();
r = parse_argv(argc, argv);
if (r <= 0)