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

Change-Id: Iabceb8c7d32111ae97d1200fbd25681e317f7bb7
Partial-Bug: #1404788
neutron/plugins/embrane/agent/dispatcher.py