From d07ca9953d3fd96f62c76003d402a907e7ce59e0 Mon Sep 17 00:00:00 2001 From: Jabber Developer Date: Sat, 5 Jul 2025 20:54:06 +0200 Subject: [PATCH] fix: reduce logging If we can't debug_log because we couldn't obtain some data, but otherwise the app is working, "warning" level is clearly excessive. --- src/pgp/gpg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c index 1ea2ef02..52f98bbd 100644 --- a/src/pgp/gpg.c +++ b/src/pgp/gpg.c @@ -664,7 +664,8 @@ p_gpg_decrypt(const char* const cipher) } gpgme_key_unref(key); } else if (error) { - log_warning("GPGME error: %s", gpgme_strerror(error)); + // Emails are used only to fetch PGP recipients for debug logging. If something went wrong here, it's not worthy of warning. + log_debug("GPGME error on gpgme_get_key(): %s", gpgme_strerror(error)); } if (recipient->next) {