Replace deprecated LOG.warn with LOG.warning

LOG.warn is deprecated. It still used in a few places.
Updated to non-deprecated LOG.warning.

Change-Id: I8249ca21e564beac5861129e687591e3f20059f6
Partial-Bug:#1508442
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2016-01-05 08:47:09 +05:30
parent 73ef126daa
commit 052f4cc8ce

View File

@ -74,7 +74,7 @@ class FakePopen(object):
if args in self.cmd_registry:
this = self.cmd_registry[args]
else:
LOG.warn('call to unregistered command: %s', cmd)
LOG.warning('call to unregistered command: %s', cmd)
this = {'stdout': '', 'stderr': '', 'returncode': 0}
self.stdout = this['stdout']
@ -89,7 +89,7 @@ class FakePopen(object):
if input in self.script_registry:
this = self.script_registry[input]
else:
LOG.warn('call to unregistered script: %s', input)
LOG.warning('call to unregistered script: %s', input)
this = {'stdout': '', 'stderr': '', 'returncode': 0}
self.stdout = this['stdout']
self.stderr = this['stderr']