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
This commit is contained in:
yatin karel 2016-07-16 19:22:26 +05:30
parent 16ebd1d51b
commit ab6d426e5f
1 changed files with 2 additions and 2 deletions

View File

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