From eeecf6e607740337599dfb9878dbef843b0f39c3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 1 Jul 2011 22:35:34 +0200 Subject: [PATCH] log: log to syslog unless connected to a tty in user mode --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index e10441c8..76a09438 100644 --- a/src/main.c +++ b/src/main.c @@ -1063,7 +1063,7 @@ int main(int argc, char *argv[]) { } } else { arg_running_as = MANAGER_USER; - log_set_target(LOG_TARGET_CONSOLE); + log_set_target(LOG_TARGET_AUTO); } if (set_default_unit(SPECIAL_DEFAULT_TARGET) < 0) -- 2.39.5