]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
linuxbridge: Use lazy logging interpolation
authorAngus Lees <gus@inodes.org>
Mon, 22 Dec 2014 04:40:32 +0000 (15:40 +1100)
committerAngus Lees <gus@inodes.org>
Mon, 22 Dec 2014 06:12:54 +0000 (17:12 +1100)
commit4a5a8aab0f6a451642b459cdc510edb4e36a9858
tree1cb46f5a5fc45fd9ce564b270d322c6e199c52bb
parent15581431c1a30a30f33860e0f895b7973d830e48
linuxbridge: 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 linuxbridge agent via a
pylint test.  Other occurrences are addressed elsewhere.

Change-Id: I5cb3bbb401f5049760dfe5263a52bd43f23dcfd4
Partial-Bug: #1404788
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py