chiark / gitweb /
log: log to syslog unless connected to a tty in user mode
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Jul 2011 20:35:34 +0000 (22:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Jul 2011 20:35:34 +0000 (22:35 +0200)
src/main.c

index e10441c..76a0943 100644 (file)
@@ -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)