]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Refactor logging in loop to only log debug messages once
authorBilly Olsen <billy.olsen@canonical.com>
Fri, 23 Jan 2015 22:50:40 +0000 (15:50 -0700)
committerBilly Olsen <billy.olsen@canonical.com>
Wed, 4 Feb 2015 22:27:48 +0000 (15:27 -0700)
commitd93e0098ebd5f333d6f496f10a663cd4351410ae
tree7e4934757c89db689628c6de848f0e7046e2216c
parenta584e35775391a2a93535482c5a05ff8774cb56b
Refactor logging in loop to only log debug messages once

Logging entries in a loop to a file can be expensive for a large
number of objects (e.g. ports) in a loop. Rather than perform the
overhead of logging a debug entry for each line within the hosts
file, move the debug trace of the contents to after the loop to
bulk up the I/O operations.

Change-Id: I3ad7864eeb2f959549ed356a1e34fa18804395cc
Closes-Bug: #1414218
neutron/agent/linux/dhcp.py