summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-04-26 18:58:58 +0000
committerGerrit Code Review <review@openstack.org>2012-04-26 18:58:58 +0000
commitb75f5e7547a4bb4efdb409b4e6339e3b63973019 (patch)
tree3d819b0b152d3a0e11ac2ed7c5bee188c7884a5c
parentffde6f92635ea7a9fd3e4bc3ba793c5de07b8a8e (diff)
parent589f3f108c2edcd66de48891a92e875b7d2823c9 (diff)
Merge "Add instance to log messages."
-rw-r--r--nova/api/openstack/compute/contrib/server_start_stop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/compute/contrib/server_start_stop.py b/nova/api/openstack/compute/contrib/server_start_stop.py
index 099e5fa02..ca905d496 100644
--- a/nova/api/openstack/compute/contrib/server_start_stop.py
+++ b/nova/api/openstack/compute/contrib/server_start_stop.py
@@ -42,8 +42,8 @@ class ServerStartStopActionController(wsgi.Controller):
def _start_server(self, req, id, body):
"""Start an instance. """
context = req.environ['nova.context']
- LOG.debug(_("start instance %r"), id)
instance = self._get_instance(context, id)
+ LOG.debug(_('start instance'), instance=instance)
self.compute_api.start(context, instance)
return webob.Response(status_int=202)
@@ -51,8 +51,8 @@ class ServerStartStopActionController(wsgi.Controller):
def _stop_server(self, req, id, body):
"""Stop an instance."""
context = req.environ['nova.context']
- LOG.debug(_("stop instance %r"), id)
instance = self._get_instance(context, id)
+ LOG.debug(_('stop instance'), instance=instance)
self.compute_api.stop(context, instance)
return webob.Response(status_int=202)