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: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=eeecf6e607740337599dfb9878dbef843b0f39c3;hp=0254daedb1b67a16c6d54b964b31b5e8eaa4ac4c log: log to syslog unless connected to a tty in user mode --- diff --git a/src/main.c b/src/main.c index e10441c86..76a094383 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)