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. Change-Id: Id0c5d67a763121c3245316955c4901a0dbea73ad Closes-Bug: #1530742
This commit is contained in:
parent
3eb8c2403a
commit
b65817fa43
|
@ -54,7 +54,7 @@ def get_system_ca_file():
|
|||
if os.path.exists(ca):
|
||||
LOG.debug("Using ca file %s", ca)
|
||||
return ca
|
||||
LOG.warn(_LW("System ca file could not be found."))
|
||||
LOG.warning(_LW("System ca file could not be found."))
|
||||
|
||||
|
||||
class HTTPClient(object):
|
||||
|
|
Loading…
Reference in New Issue