]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Quiet down a large log file heavy hitter.
authorCarl Baldwin <carl.baldwin@hp.com>
Thu, 11 Jul 2013 18:17:40 +0000 (18:17 +0000)
committerCarl Baldwin <carl.baldwin@hp.com>
Thu, 11 Jul 2013 18:22:17 +0000 (18:22 +0000)
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

index 01a3a2ab2606cae7866bf231a9750ca7479b8aa3..9b0d5797fb7d5869c7aa804c5745faef0bded19c 100644 (file)
@@ -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)