summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2012-04-12 11:38:53 +1000
committerMichael Still <mikal@stillhq.com>2012-04-26 08:04:06 +1000
commit589f3f108c2edcd66de48891a92e875b7d2823c9 (patch)
treeee9c78447e8e83a07d6e1cfb1f932f2254718147
parentca4aee67e3ef851c64150af39aa7dca3d2cab349 (diff)
Add instance to log messages.
Change-Id: I53b166c7f53c0094951cb13ed8942e0b7bbb8b55
-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)