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
This commit is contained in:
Carl Baldwin 2013-07-11 18:17:40 +00:00
parent 3c7ad231b6
commit 79e4c3e758
1 changed files with 1 additions and 1 deletions

View 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)