summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-02-06 22:42:39 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-02-06 22:43:47 +0000
commit0cbc3950073d7add201864030d9295d0d14e560c (patch)
tree7ed0858c26125161937009777890ae5a0f828b11
parentab857f574da8af727ace194792460f062c0cf365 (diff)
downloadnova-0cbc3950073d7add201864030d9295d0d14e560c.tar.gz
nova-0cbc3950073d7add201864030d9295d0d14e560c.tar.xz
nova-0cbc3950073d7add201864030d9295d0d14e560c.zip
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: <nova.db.sqlalchemy.models.Instance object at 0x5deb5d0> from (pid=11219) prepare_instance_filter /usr/lib/python2.6/dist-packages/nova/virt/firewall.py:138 Change-Id: I22cd20dbed44527f0d2ece2a788c9465f7f77ee4
-rw-r--r--nova/virt/firewall.py2
1 files changed, 1 insertions, 1 deletions
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()