From c94011fba47277a88d7eb8dd33b11db66f6ac0d4 Mon Sep 17 00:00:00 2001 From: Michael Still Date: Thu, 12 Apr 2012 11:40:28 +1000 Subject: Add instance to several log messages. Change-Id: I6e073effc628b1192c5289de224b3c36e61fdf39 --- nova/api/openstack/compute/contrib/volumes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nova/api/openstack/compute/contrib/volumes.py b/nova/api/openstack/compute/contrib/volumes.py index bc9e6a0d2..129b181c7 100644 --- a/nova/api/openstack/compute/contrib/volumes.py +++ b/nova/api/openstack/compute/contrib/volumes.py @@ -308,7 +308,8 @@ class VolumeAttachmentController(object): instance = vol['instance'] if instance is None or str(instance['uuid']) != server_id: - LOG.debug("instance_id != server_id") + LOG.debug("Instance not found (server_id=%(server_id)s)", + {'server_id': server_id}, instance=instance) raise exc.HTTPNotFound() return {'volumeAttachment': _translate_attachment_detail_view(context, @@ -372,7 +373,8 @@ class VolumeAttachmentController(object): instance = vol['instance'] if instance is None or str(instance['uuid']) != server_id: - LOG.debug("instance_id != server_id") + LOG.debug("Instance not found (server_id=%(server_id)s)", + {'server_id': server_id}, instance=instance) raise exc.HTTPNotFound() self.compute_api.detach_volume(context, -- cgit