log: log to syslog unless connected to a tty in user mode

This commit is contained in:
Lennart Poettering 2011-07-01 22:35:34 +02:00
parent 0254daedb1
commit eeecf6e607

View 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)