summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2015-03-05 16:44:03 +0100
committerKarel Zak <kzak@redhat.com>2015-03-12 10:16:31 +0100
commit23dd342403042789aec5687eb4d80990ec5b9304 (patch)
tree3900c78dc915d3dbb1969f2e6f835bd53bd8f355
parentc330264bd9ed2d5d92542302d98266b9919d16d9 (diff)
downloadutil-linux-23dd342403042789aec5687eb4d80990ec5b9304.tar.gz
logger: messages are logged with kern.* priority by default
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
-rw-r--r--misc-utils/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index 6578cc702..5bdfeeeca 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -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,