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: I24ffa2215eb3bb60d9441f48fd069186a2385fb1
Closes-Bug:#1508442
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2016-03-11 13:17:34 +05:30
parent 689c897a2c
commit 9f205be889
2 changed files with 5 additions and 4 deletions

View File

@ -130,8 +130,9 @@ def update_drivers(drivers, releases):
ci_result['ci_tested'] = True
drivers[key]['releases'][os_version] = ci_result
else:
LOG.warn('CI result is not found for driver: %s in branch: %s',
driver['name'], branch)
LOG.warning(
'CI result is not found for driver: %s in branch: %s',
driver['name'], branch)
rcs_inst.close()

View File

@ -74,14 +74,14 @@ def read_uri(uri):
fd.close()
return raw
except Exception as e:
LOG.warn('Error while reading uri: %s' % e)
LOG.warning('Error while reading uri: %s' % e)
def read_json_from_uri(uri):
try:
return json.loads(read_uri(uri))
except Exception as e:
LOG.warn('Error parsing json: %s' % e)
LOG.warning('Error parsing json: %s' % e)
def make_range(start, stop, step):