From c10291bfadf768a29bf9b56b4402517ad4680f02 Mon Sep 17 00:00:00 2001 From: Anna Khmelnitsky Date: Thu, 1 Jun 2017 08:33:25 -0700 Subject: [PATCH] Change log level of cert-realated SSL errors These can happen quite often and are not errors since we recover Change-Id: I2c33bbfac3b27dd24a0c4aa4b3a5b2c5de215678 --- vmware_nsxlib/v3/cluster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware_nsxlib/v3/cluster.py b/vmware_nsxlib/v3/cluster.py index c5241423..4cdc0463 100644 --- a/vmware_nsxlib/v3/cluster.py +++ b/vmware_nsxlib/v3/cluster.py @@ -117,7 +117,7 @@ class TimeoutSession(requests.Session): # This is most probably "client cert not found" error (this # happens when server closed the connection and requests # reopen it). Try reloading client cert. - LOG.warning("SSL error: %s, retrying.." % e) + LOG.debug("SSL error: %s, retrying.." % e) except OSError as e: # Lack of client cert file can come in form of OSError, # in this case filename will appear in the error. Try @@ -125,7 +125,7 @@ class TimeoutSession(requests.Session): if self._cert_provider.filename() not in str(e): raise e # Don't expose cert file name to the logs - LOG.warning("Reloading client certificate..") + LOG.info("Reloading client certificate..") # The following with statement allows for preparing certificate and # private key file and dispose it once connections are spawned