summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2016-06-28 16:42:31 +0900
committerTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>2016-10-11 08:39:48 +0000
commit4eb89c206e68a7172ebad897ad24769036c7bdd6 (patch)
tree53e88dba13b979dc1dc084cf385e81282fc9761f /HACKING.rst
parent3d7ff766a7e288faa462cf64cd53e94317814589 (diff)
downloadnova-4eb89c206e68a7172ebad897ad24769036c7bdd6.tar.gz
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. - [N354] String interpolation should be delayed at logging calls. See the oslo i18n guideline. * http://docs.openstack.org/developer/oslo.i18n/guidelines.html Change-Id: Ief6d3ee3539c0857098fffdb7acfeec3e0fed6eb Closes-Bug: #1596829
Diffstat (limited to 'HACKING.rst')
-rw-r--r--HACKING.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst
index cdd8cfd6e0..35e754d708 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -64,6 +64,7 @@ Nova Specific Commandments
- [N351] Do not use the oslo_policy.policy.Enforcer.enforce() method.
- [N352] LOG.warn is deprecated. Enforce use of LOG.warning.
- [N353] Validate that context objects is not passed in logging calls.
+- [N354] String interpolation should be delayed at logging calls.
Creating Unit Tests
-------------------