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:
parent
0c2b84321e
commit
a566ba7713
@ -136,7 +136,7 @@ def image_update(request, image_id, **kwargs):
|
|||||||
msg = (('Failed to remove temporary image file '
|
msg = (('Failed to remove temporary image file '
|
||||||
'%(file)s (%(e)s)') %
|
'%(file)s (%(e)s)') %
|
||||||
dict(file=filename, e=str(e)))
|
dict(file=filename, e=str(e)))
|
||||||
LOG.warn(msg)
|
LOG.warning(msg)
|
||||||
|
|
||||||
|
|
||||||
def image_create(request, **kwargs):
|
def image_create(request, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user