Blame SOURCES/wget-1.19.5-ca-cert-too-verbose.patch

aa6d84
From 706e71564cadc7192ac21efbf51b661c967f35b5 Mon Sep 17 00:00:00 2001
aa6d84
From: Tomas Hozza <thozza@redhat.com>
aa6d84
Date: Tue, 24 Mar 2020 13:18:40 +0100
aa6d84
Subject: [PATCH] Don't print message about loading crl or ca-cert files with --no-verbose
aa6d84
aa6d84
* src/gnutls.c (ssl_init): Use LOG_VERBOSE verbosity for informative
aa6d84
  message related to loading CRL or CA certificate file.
aa6d84
aa6d84
Before change [1], wget didn't produce any output related to loading CA
aa6d84
certificates when --no-verbose option has been used. When --no-verbose
aa6d84
option is used, only error messages and basic information should get
aa6d84
printed. Information about loading CRL or CA certificate is probably not
aa6d84
a basic information. Any error when loading the CRL or CA certificate
aa6d84
will be still printed with --no-verbose.
aa6d84
aa6d84
Some users rely on wget not printing such information and they consider
aa6d84
it a regression.
aa6d84
aa6d84
Reported as https://bugzilla.redhat.com/show_bug.cgi?id=1807267
aa6d84
aa6d84
[1] http://git.savannah.gnu.org/cgit/wget.git/commit/?id=e4a8fe84e2b813b65d91aec29298eecabe4850a5
aa6d84
aa6d84
Signed-off-by: Tomas Hozza <thozza@redhat.com>
aa6d84
---
aa6d84
 src/gnutls.c | 4 ++--
aa6d84
 1 file changed, 2 insertions(+), 2 deletions(-)
aa6d84
aa6d84
diff --git a/src/gnutls.c b/src/gnutls.c
aa6d84
index e95ecea..7ab1f08 100644
aa6d84
--- a/src/gnutls.c
aa6d84
+++ b/src/gnutls.c
aa6d84
@@ -172,7 +172,7 @@ ssl_init (void)
aa6d84
       else
aa6d84
         {
aa6d84
           ncerts += rc;
aa6d84
-          logprintf (LOG_NOTQUIET, _ ("Loaded CA certificate '%s'\n"), opt.ca_cert);
aa6d84
+          logprintf (LOG_VERBOSE, _ ("Loaded CA certificate '%s'\n"), opt.ca_cert);
aa6d84
         }
aa6d84
     }
aa6d84
 
aa6d84
@@ -186,7 +186,7 @@ ssl_init (void)
aa6d84
           return false;
aa6d84
         }
aa6d84
 
aa6d84
-      logprintf (LOG_NOTQUIET, _ ("Loaded CRL file '%s'\n"), opt.crl_file);
aa6d84
+      logprintf (LOG_VERBOSE, _ ("Loaded CRL file '%s'\n"), opt.crl_file);
aa6d84
     }
aa6d84
 
aa6d84
   DEBUGP (("Certificates loaded: %d\n", ncerts));
aa6d84
--
aa6d84
libgit2 0.28.2
aa6d84