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

Change-Id: I23fd4e7d0e4173e753a124d62a1563ce6ac674ca
Partial-Bug: #1404788
neutron/plugins/bigswitch/db/consistency_db.py