Merge "Replace deprecated LOG.warn with LOG.warning"

This commit is contained in:
Jenkins
2016-03-11 14:03:08 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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)
+4 -3
View File
@@ -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