From 71926729f53e242a183665b33fdbbda042b7566c Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 6 Apr 2020 11:54:03 +0200 Subject: [PATCH] rsyslog: Keep Linux console log level default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MarIuX’ Linux kernel’s default console log level is configured to be 7. $ grep LOGLEVEL /boot/config-5.4.21.mx64.323 CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 Probably to not spam the console, in the distant past rsyslogd was configured to decrease the log level to 1. After rsyslogd started, the console log level was therefore changed. $ sysctl kernel.printk kernel.printk = 1 4 1 7 Especially on the serial console, this is very confusing, as during start-up suddenly messages are not printed anymore, when messages with the same log level have been printed before, which happens when rsyslogd starts. Remove the kernel log level configuration, so rsyslogd does not change anything. If we want to change the default console log level, we should configure the Linux kernel appropriately. At least in MarIuX, where we build the Linux kernel ourselves, doing it in rsyslogd is a confusing layering violation. --- misc_etc_files/rsyslog.conf | 2 -- 1 file changed, 2 deletions(-) diff --git a/misc_etc_files/rsyslog.conf b/misc_etc_files/rsyslog.conf index b2de0be..e3dad76 100644 --- a/misc_etc_files/rsyslog.conf +++ b/misc_etc_files/rsyslog.conf @@ -1,8 +1,6 @@ $ModLoad imuxsock.so $ModLoad imklog -$klogConsoleLogLevel 1 - *.*;mail.none /var/log/messages mail.info /var/log/mail.log