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:
parent
219fcaf118
commit
f806413b4c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue