Use LOG.warning instead of deprecated LOG.warn
The LOG.warn method is deprecated[1] and the LOG.warning method should be used instead. [1] https://docs.python.org/3/library/logging.html#logging.warning Change-Id: I5211a236492910d759f3c4beb04d9ffa156007ae
This commit is contained in:
parent
ba43685c13
commit
e44722f005
|
@ -63,8 +63,8 @@ def load_tests(loader, tests, pattern):
|
|||
keystoneauth1.exceptions.discovery.DiscoveryFailure,
|
||||
keystoneauth1.exceptions.connection.UnknownConnectionError,
|
||||
keystoneauth1.exceptions.connection.ConnectFailure):
|
||||
LOG.warn("Keystone auth exception: %s: %s" % (sys.exc_info()[0],
|
||||
sys.exc_info()[1]))
|
||||
LOG.warning("Keystone auth exception: %s: %s" %
|
||||
(sys.exc_info()[0], sys.exc_info()[1]))
|
||||
# Clear the auth_url, as there is no point in tempest trying
|
||||
# to authenticate later with mis-configured or unreachable endpoint
|
||||
conf.auth_url = None
|
||||
|
|
Loading…
Reference in New Issue