Replace LOG.warn with LOG.warning
logging.warn is deprecated in Python 3 [1]. [1] https://docs.python.org/3/library/logging.html#logging.warning Change-Id: Iecf3ba100fb896189c8da0fc69da3f4b86345fb2
This commit is contained in:
parent
7cc97d20ea
commit
cf5ffc5f0a
|
@ -609,7 +609,7 @@ class BarbicanKeyManager(key_manager.KeyManager):
|
|||
except (barbican_exceptions.HTTPAuthError,
|
||||
barbican_exceptions.HTTPClientError,
|
||||
barbican_exceptions.HTTPServerError) as e:
|
||||
LOG.warn(_("Error occurred while retrieving object metadata,"
|
||||
" not adding it to the list: %s"), e)
|
||||
LOG.warning(_("Error occurred while retrieving object "
|
||||
"metadata, not adding it to the list: %s"), e)
|
||||
|
||||
return objects
|
||||
|
|
Loading…
Reference in New Issue