]> err.no Git - systemd/commitdiff
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 e10441c862d7766ea06890afd33113712ce6c1bc..76a094383237922510da0658b9b8971feced3896 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)