Browse Source

Replace deprecated LOG.warn with LOG.warning

LOG.warn is deprecated. It is still used in few modules.
Replaced with non-deprecated LOG.warning.

Change-Id: I409a08883ec4385a43fc2ce88a02d19bafdd7c19
Partial-Bug: #1508442
tags/1.0.0
yatin karel 3 years ago
parent
commit
ab6d426e5f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      vitrage/evaluator/scenario_evaluator.py

+ 2
- 2
vitrage/evaluator/scenario_evaluator.py View File

@@ -304,8 +304,8 @@ class ActionTracker(object):
304 304
                              if _is_equivalent(entry))
305 305
             self._tracker[key].remove(to_remove)
306 306
         except StopIteration:
307
-            LOG.warn("Could not find action entry to remove "
308
-                     "from tracker: {}".format(action))
307
+            LOG.warning("Could not find action entry to remove "
308
+                        "from tracker: {}".format(action))
309 309
 
310 310
     def get_dominant_action(self, key):
311 311
         return self._tracker[key][0] if self._tracker.get(key, None) else None

Loading…
Cancel
Save