log: normalize log target condition check
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Sep 2020 14:17:12 +0000 (16:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Sep 2020 14:17:12 +0000 (16:17 +0200)
commitef9bddb79984aa1b9d605d44b8c0890e8289bef1
tree4c2c75d117fc32dd8ca128644f6e8d0e36d940fa
parent27ffec083140467a03f463a446c6d19dc5e437ab
log: normalize log target condition check

THis doesn't change the condition's logic at all, but is an attempt to
make things a bit more readable: instead of checking log_target !=
LOG_TARGET_AUTO let's actually list the targets where we want to
consider journal/syslog/kmsg, to make things a bit less confusing. After
all the message here is not to avoid them if LOG_TARGET_AUTO is set, but
to definitely do them in the other cases.
src/basic/log.c