]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Don't log debug logs to console
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 11 Apr 2024 17:40:16 +0000 (19:40 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 14 Apr 2024 17:59:10 +0000 (19:59 +0200)
We have various tools that log directly to the console, as well as
pid1 which logs directly to the console when running in a container.
Let's make sure that we don't log debug messages to the console by
default, but keep the behavior when running in CI.

.github/workflows/mkosi.yml
mkosi.conf

index 67d9e45dd35d86eb85df6c74b4d7d53fa089fede..249bf218f9931095a34a8cd15fd0bd0ea1033a91 100644 (file)
@@ -112,6 +112,7 @@ jobs:
         tee mkosi.conf.d/99-ci.conf <<EOF
         [Host]
         KernelCommandLineExtra=systemd.unit=mkosi-check-and-shutdown.service
+                               systemd.log_level=debug
                                systemd.journald.max_level_console=debug
                                # udev's debug log output is very verbose, so up it to info in CI.
                                udev.log_level=info
index dde0562d806e64a9d59c3e22002898d9002cd4b6..96843db488149a85ac1d417cb6962b8c933aafea 100644 (file)
@@ -22,7 +22,7 @@ BuildSourcesEphemeral=yes
 @RuntimeSize=8G
 ToolsTreePackages=virtiofsd
 KernelCommandLineExtra=systemd.crash_shell
-                       systemd.log_level=debug
+                       systemd.log_level=debug,console:info
                        systemd.log_ratelimit_kmsg=0
                        systemd.journald.forward_to_console
                        systemd.journald.max_level_console=warning