summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-01 22:35:34 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-01 22:35:34 +0200
commiteeecf6e607740337599dfb9878dbef843b0f39c3 (patch)
tree3b7d68d5b262bfb4b49c979023f39319e30b45b3 /src
parent0254daedb1b67a16c6d54b964b31b5e8eaa4ac4c (diff)
log: log to syslog unless connected to a tty in user mode
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e10441c862..76a0943832 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)