]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
logger: messages are logged with kern.* priority by default
authorRainer Gerhards <rgerhards@adiscon.com>
Thu, 5 Mar 2015 15:44:03 +0000 (16:44 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2015 09:16:31 +0000 (10:16 +0100)
The default should be user.notice and kern.* should never be used
(syslog(3) forbids this).

This is a severe regression, as messages are now logged to the wrong
bin or not at all. So they get lost and may confuse readers of the
kernel bin.

regression from 2.25.2 to 2.26

misc-utils/logger.c

index 6578cc702052d90f01b09274b4d476329dfdac24..5bdfeeecaa919c5610d0c797e2fc84b07ac5ea01 100644 (file)
@@ -607,7 +607,7 @@ int main(int argc, char **argv)
        struct logger_ctl ctl = {
                .fd = -1,
                .pid = 0,
-               .pri = LOG_NOTICE,
+               .pri = LOG_USER | LOG_NOTICE,
                .prio_prefix = 0,
                .tag = NULL,
                .unix_socket = NULL,