diff --git a/senlin/common/wsgi.py b/senlin/common/wsgi.py index 91dc944ca..d51826573 100644 --- a/senlin/common/wsgi.py +++ b/senlin/common/wsgi.py @@ -352,7 +352,7 @@ class Server(object): self.stale_children.remove(pid) LOG.info(_LI('Removed stale child %s'), pid) else: - LOG.warn(_LW('Unrecognised child %s'), pid) + LOG.warning(_LW('Unrecognized child %s'), pid) def _verify_and_respawn_children(self, pid, status): if len(self.stale_children) == 0: diff --git a/senlin/engine/registry.py b/senlin/engine/registry.py index baf41dc32..07daae06c 100644 --- a/senlin/engine/registry.py +++ b/senlin/engine/registry.py @@ -83,7 +83,7 @@ class Registry(object): registry = self._registry if info is None: # delete this entry. - LOG.warn(_LW('Removing %(item)s from registry'), {'item': name}) + LOG.warning(_LW('Removing %(item)s from registry'), {'item': name}) registry.pop(name, None) return @@ -95,7 +95,8 @@ class Registry(object): 'old': str(registry[name].plugin), 'new': str(info.plugin) } - LOG.warn(_LW('Changing %(name)s from %(old)s to %(new)s'), details) + LOG.warning(_LW('Changing %(name)s from %(old)s to %(new)s'), + details) else: LOG.info(_LI('Registering %(name)s -> %(value)s'), { 'name': name, 'value': str(info.plugin)})