]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ovs_dvr: Use lazy logging interpolation
authorAngus Lees <gus@inodes.org>
Mon, 22 Dec 2014 04:41:28 +0000 (15:41 +1100)
committerAngus Lees <gus@inodes.org>
Wed, 31 Dec 2014 03:26:52 +0000 (03:26 +0000)
commitff03b268f78693c781c83aec575777381f5bcb95
tree10066f83b56de85eac16e8ef322265dca578ee4d
parentd7cbe08467ad4957e55976e08a6ed15e841efac7
ovs_dvr: Use lazy logging interpolation

There are a small number of examples of "eager" interpolation in
neutron:
  logging.debug("foo %s" % arg)

These should be converted to perform the interpolation lazily within
the logging function, since if the severity is below the logging level
then the interpolation can be skipped entirely.

This change addresses all such examples found in ovs agent via a pylint
test.  Other occurrences are addressed elsewhere.

Change-Id: Ie215f33818cc5c16e570ace4c750df5371d27e09
Partial-Bug: #1404788
neutron/plugins/openvswitch/agent/ovs_dvr_neutron_agent.py