From: Lennart Poettering Date: Fri, 1 Jul 2011 20:35:34 +0000 (+0200) Subject: log: log to syslog unless connected to a tty in user mode X-Git-Tag: v30~75 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeecf6e607740337599dfb9878dbef843b0f39c3;p=systemd log: log to syslog unless connected to a tty in user mode --- 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)