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:
yushangbin 2017-07-19 15:21:16 +08:00
parent 7cc97d20ea
commit cf5ffc5f0a
1 changed files with 2 additions and 2 deletions

View File

@ -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