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: I402398b1130f18c91bb0c4fa7f677181089dcd29
Closes-Bug:#1508442
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2016-01-05 12:21:12 +05:30
parent 219fcaf118
commit f806413b4c
1 changed files with 3 additions and 2 deletions

View File

@ -187,8 +187,9 @@ class Worker(BaseWorker):
except collector.NoDataCollected:
raise
except Exception as e:
LOG.warn('Error while collecting service %(service)s: '
'%(error)s', {'service': service, 'error': e})
LOG.warning(
'Error while collecting service %(service)s: '
'%(error)s', {'service': service, 'error': e})
raise collector.NoDataCollected('', service)
except collector.NoDataCollected:
begin = timestamp