Skip to content

Remove Linux console log level setting from rsyslog.conf #121

Merged

Conversation

pmenzel
Copy link
Contributor

@pmenzel pmenzel commented Apr 6, 2020

No description provided.

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.
@donald donald merged commit e95b06b into master Apr 8, 2020
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants