Change LOG.warn to LOG.warning
Python 3 deprecated the logger.warn method, see: https://docs.python.org/3/library/logging.html#logging.warning so we prefer to use warning to avoid DeprecationWarning. Closes-Bug: #1530742 Change-Id: Ifb5fba442ccaaf065f0959b2a19b625d07ab0c47
This commit is contained in:
parent
4e3bc8ead7
commit
d07c76b0ea
|
@ -48,7 +48,7 @@ def get_system_ca_file():
|
|||
if os.path.exists(ca):
|
||||
LOG.debug("Using ca file %s", ca)
|
||||
return ca
|
||||
LOG.warn("System ca file could not be found.")
|
||||
LOG.warning("System ca file could not be found.")
|
||||
|
||||
|
||||
class HTTPClient(object):
|
||||
|
|
Loading…
Reference in New Issue