Add a hacking rule for string interpolation at logging
String interpolation should be delayed to be handled
by the logging code, rather than being done at the point of
the logging call. So add the following hacking rule for it.
- [N536] String interpolation should be delayed at logging calls.
We need this to ensure that all projects using the neutron-lib
hacking rules still have enforcement of the log policies
of the project.
Reviewed: https:/ /review. openstack. org/347126 /git.openstack. org/cgit/ openstack/ neutron- lib/commit/ ?id=eb32fd4fbd0 c16b51efb91f238 5ab3f2243fcd48
Committed: https:/
Submitter: Jenkins
Branch: master
commit eb32fd4fbd0c16b 51efb91f2385ab3 f2243fcd48
Author: Takashi NATSUME <email address hidden>
Date: Tue Jul 26 14:56:46 2016 +0900
Add a hacking rule for string interpolation at logging
String interpolation should be delayed to be handled
by the logging code, rather than being done at the point of
the logging call. So add the following hacking rule for it.
- [N536] String interpolation should be delayed at logging calls.
We need this to ensure that all projects using the neutron-lib
hacking rules still have enforcement of the log policies
of the project.
See the oslo i18n guideline.
* http:// docs.openstack. org/developer/ oslo.i18n/ guidelines. html
Change-Id: I901dcbfbd53d5d 19db651473d2891 bc8e8a59710
Related-Bug: #1596829