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

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