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:
zhurong 2015-12-22 07:50:57 +08:00
parent 3d0884b61d
commit a12b0afde8
1 changed files with 1 additions and 1 deletions

View File

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