chiark / gitweb /
Revert "log: fix fallbacks to kmsg"
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Feb 2013 13:33:50 +0000 (14:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Feb 2013 13:33:50 +0000 (14:33 +0100)
commit4e7bc3f339a8f08b788ccccee4038f59f29c4429
treea73da305745b7a6fcbc7b0ddd7b338bd642297dd
parentc06bf414042cd1bf94e0af63e9e2a0c291bfc546
Revert "log: fix fallbacks to kmsg"

This reverts commit 4a01181e460686d8b4a543b1dfa7f77c9e3c5ab8.

This patch broke LOG_TARGET_AUTO, i.e. automatic selection of STDERR if
it is a TTY with a fallback on the journal and kmsg otherwise.

The general rule should probably be:

log_open() -- open the "best" possible logging channel according to
log_target configuration.

log_dispatch() -- don't open any log channels ever, with the exception
of kmsg since that has no drawbacks. And do this only on true errors of
the better log channel, not just when it wasn't opened.
src/shared/log.c