Merge "Replace deprecated LOG.warn with LOG.warning"
This commit is contained in:
@@ -88,7 +88,7 @@ class CoordinationMixin(object):
|
||||
self._coordination_started = True
|
||||
|
||||
except Exception:
|
||||
LOG.warn(_LW("Failed to start Coordinator:"),
|
||||
LOG.warning(_LW("Failed to start Coordinator:"),
|
||||
exc_info=True)
|
||||
time.sleep(15)
|
||||
|
||||
|
||||
@@ -710,9 +710,10 @@ class Service(service.RPCService, coordination.CoordinationMixin,
|
||||
|
||||
stale_zones = self.central_api.find_zones(context, stale_criterion)
|
||||
if stale_zones:
|
||||
LOG.warn(_LW('Found %(len)d zones PENDING for more than %(sec)d '
|
||||
'seconds'), {'len': len(stale_zones),
|
||||
'sec': self.max_prop_time})
|
||||
LOG.warning(
|
||||
_LW('Found %(len)d zones PENDING for more than %(sec)d '
|
||||
'seconds'), {'len': len(stale_zones),
|
||||
'sec': self.max_prop_time})
|
||||
error_zones.extend(stale_zones)
|
||||
|
||||
return error_zones
|
||||
|
||||
Reference in New Issue
Block a user