From: Zbigniew Jędrzejewski-Szmek Date: Tue, 14 May 2024 14:19:31 +0000 (+0200) Subject: core/exec-credential: downgrade warning about missing cred to debug X-Git-Tag: v256-rc2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1743b8bad157666ed00c396f8d89af1994956b97;p=thirdparty%2Fsystemd.git core/exec-credential: downgrade warning about missing cred to debug 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. --- diff --git a/src/core/exec-credential.c b/src/core/exec-credential.c index 9c48bd8d0f1..f4cff57848b 100644 --- a/src/core/exec-credential.c +++ b/src/core/exec-credential.c @@ -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; }