Python 3 deprecated the logger.warn method in favor of 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: #1529913

Change-Id: Ief1ebbbc8198d2d7a01a5ec41b61d8b6d466da1f
This commit is contained in:
LiuNanke 2015-12-29 12:39:36 +08:00
parent 0c2b84321e
commit a566ba7713
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ def image_update(request, image_id, **kwargs):
msg = (('Failed to remove temporary image file '
'%(file)s (%(e)s)') %
dict(file=filename, e=str(e)))
LOG.warn(msg)
LOG.warning(msg)
def image_create(request, **kwargs):