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. Closes-Bug: #1530742 Change-Id: I36e77a086872c87cf93ab62455379d845aaa11df
This commit is contained in:
parent
3d0884b61d
commit
a12b0afde8
|
@ -210,7 +210,7 @@ class MuranoDslExecutor(object):
|
|||
try:
|
||||
method.invoke(self, obj, (), {}, None)
|
||||
except Exception as e:
|
||||
LOG.warn(_LW(
|
||||
LOG.warning(_LW(
|
||||
'Muted exception during execution of .destroy '
|
||||
'on {0}: {1}').format(obj, e), exc_info=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue