From b0bc71a8354f15e7b92a81d434305430927a48a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Wed, 24 Jul 2024 16:34:37 +0200 Subject: [PATCH] Reduce log spam from Docker health checks (#3491) Reduce verbosity from deactivated Docker mounts, triggered by the Docker healthcheck. These messages do not carry any value for us and logs supplied by users are often spammed mostly with these. Moreover, they sometimes cause confusion that something is wrong, see for example #3021. Unfortunately, it's not possible to use LogFilterPatterns= here, because it's not applied to these messages, as explicitly said in the docs: Filtering is based on the unit for which LogFilterPatterns= is defined meaning log messages coming from systemd(1) about the unit are not taken into account. runc 1.2.0 supposedly should fix this, but it's unclear when it would be available, so let's stick to this solution (reducing verbosity from debug to notice for all units `run-docker-*.mount`) for the time being. --- .../systemd/system/run-docker-.mount.d/10-reduce-verbosity.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 buildroot-external/rootfs-overlay/etc/systemd/system/run-docker-.mount.d/10-reduce-verbosity.conf diff --git a/buildroot-external/rootfs-overlay/etc/systemd/system/run-docker-.mount.d/10-reduce-verbosity.conf b/buildroot-external/rootfs-overlay/etc/systemd/system/run-docker-.mount.d/10-reduce-verbosity.conf new file mode 100644 index 000000000..8430add9d --- /dev/null +++ b/buildroot-external/rootfs-overlay/etc/systemd/system/run-docker-.mount.d/10-reduce-verbosity.conf @@ -0,0 +1,2 @@ +[Mount] +LogLevelMax=notice