From 0cbc3950073d7add201864030d9295d0d14e560c Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Mon, 6 Feb 2012 22:42:39 +0000 Subject: Fix nova.virt.firewall debugging message to use UUID Otherwise it prints the repr() of the instance, which isn't very useful: 2012-02-06 21:34:23,163 DEBUG nova.virt.firewall [-] Filters added to the instance: from (pid=11219) prepare_instance_filter /usr/lib/python2.6/dist-packages/nova/virt/firewall.py:138 Change-Id: I22cd20dbed44527f0d2ece2a788c9465f7f77ee4 --- nova/virt/firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/firewall.py b/nova/virt/firewall.py index 48b02e545..2996147c7 100644 --- a/nova/virt/firewall.py +++ b/nova/virt/firewall.py @@ -135,7 +135,7 @@ class IptablesFirewallDriver(FirewallDriver): self.instances[instance['id']] = instance self.network_infos[instance['id']] = network_info self.add_filters_for_instance(instance) - LOG.debug(_('Filters added to the instance: %r'), instance) + LOG.debug(_('Filters added to instance %s'), instance['uuid']) self.refresh_provider_fw_rules() LOG.debug(_('Provider Firewall Rules refreshed')) self.iptables.apply() -- cgit