From 59471a6cad52229fca6c50d9ed1a3032717c58c8 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Mon, 6 Feb 2012 22:19:48 +0000 Subject: Fix debugging log message to print instance UUID It was printing the repr() of the instance, which is not very useful: 2012-02-06 21:34:12,111 DEBUG nova [-] Starting snapshot for VM from (pid=11219) _create_snapshot /usr/lib/python2.6/dist-packages/nova/virt/xenapi/vmops.py:653 Change-Id: I86f5e0803576fdad741e7df8d62c77bda8c95b31 --- nova/virt/xenapi/vmops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index 57872dcb0..c2960b86a 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -650,7 +650,7 @@ class VMOps(object): #TODO(sirp): Add quiesce and VSS locking support when Windows support # is added - logging.debug(_("Starting snapshot for VM %s"), instance) + logging.debug(_("Starting snapshot for VM %s"), instance['uuid']) vm_ref = VMHelper.lookup(self._session, instance.name) label = "%s-snapshot" % instance.name -- cgit