]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/exec-credential: downgrade warning about missing cred to debug
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 May 2024 14:19:31 +0000 (16:19 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 14 May 2024 18:13:57 +0000 (20:13 +0200)
Follow-up for 6b34871f5d3b0729ef125d79dfe2d493f3b52b40.

The general idea is that the list of credentials to load can and will specify
credentials which actually aren't provided, so a warning is too much. Let's
downgrade this to "info". If it turns out to be too noisy, we can downgrade
further in the future.

src/core/exec-credential.c

index 9c48bd8d0f19a178f940dde1ca8e4160fda29ee6..f4cff57848b3614bfab890d2e4d0a1ee314fcec1 100644 (file)
@@ -504,7 +504,7 @@ static int load_credential(
                  *
                  * Also, if the source file doesn't exist, but a fallback is set via SetCredentials=
                  * we are fine, too. */
-                log_full_errno(hashmap_contains(context->set_credentials, id) ? LOG_DEBUG : LOG_WARNING,
+                log_full_errno(hashmap_contains(context->set_credentials, id) ? LOG_DEBUG : LOG_INFO,
                                r, "Couldn't read inherited credential '%s', skipping: %m", path);
                 return 0;
         }