Make log levels more appropriate and change warn to warnings

This commit is contained in:
TrueTechy 2019-10-02 01:59:25 +01:00
commit 7bffbc98b5
12 changed files with 36 additions and 36 deletions

View file

@ -327,7 +327,7 @@ class ConnectionManager(object):
return self._test_next_connection_mode(tests, index + 1, server, options)
else:
if self._compare_versions(self._get_min_server_version(), result['Version']) == 1:
LOG.warn("minServerVersion requirement not met. Server version: %s", result['Version'])
LOG.warning("minServerVersion requirement not met. Server version: %s", result['Version'])
return {
'State': CONNECTION_STATE['ServerUpdateNeeded'],
'Servers': [server]

View file

@ -40,7 +40,7 @@ class Credentials(object):
raise ValueError("invalid credentials format")
except Exception as e: # File is either empty or missing
LOG.warn(e)
LOG.warning(e)
self.credentials = {}
LOG.debug("credentials initialized with: %s", self.credentials)

View file

@ -40,10 +40,10 @@ class HTTP(object):
return
try:
LOG.warn("--<[ session/%s ]", id(self.session))
LOG.info("--<[ session/%s ]", id(self.session))
self.session.close()
except Exception as error:
LOG.warn("The requests session could not be terminated: %s", error)
LOG.warning("The requests session could not be terminated: %s", error)
def _replace_user_info(self, string):