From a12b0afde87cb94f9cc7d8d6a387916a6351a11b Mon Sep 17 00:00:00 2001 From: zhurong Date: Tue, 22 Dec 2015 07:50:57 +0800 Subject: [PATCH] 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 --- murano/dsl/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/murano/dsl/executor.py b/murano/dsl/executor.py index 775ddc5d4..4795690ab 100644 --- a/murano/dsl/executor.py +++ b/murano/dsl/executor.py @@ -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)