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

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