From 79e4c3e7584d131e51236f438aaa15350847f9d8 Mon Sep 17 00:00:00 2001 From: Carl Baldwin Date: Thu, 11 Jul 2013 18:17:40 +0000 Subject: [PATCH] Quiet down a large log file heavy hitter. This line of code serialized the python structure for the device and throws it at the log file. The string is about 90K characters, isn't very useful and we found that it takes a very large amount of space in the log file causing them to grow very quickly and fill our log disk. This change extracts the device name (e.g. "tapcdc07af9-8a") and uses that in the log message. Change-Id: I240eb811445752407583f0fb322ce061acb293b9 Fixes: Bug #1200321 --- neutron/agent/securitygroups_rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/agent/securitygroups_rpc.py b/neutron/agent/securitygroups_rpc.py index 01a3a2ab2..9b0d5797f 100644 --- a/neutron/agent/securitygroups_rpc.py +++ b/neutron/agent/securitygroups_rpc.py @@ -157,7 +157,7 @@ class SecurityGroupAgentRpcMixin(object): self.context, device_ids) with self.firewall.defer_apply(): for device in devices.values(): - LOG.debug(_("Update port filter for %s"), device) + LOG.debug(_("Update port filter for %s"), device['device']) self.firewall.update_port_filter(device)