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