diff options
author | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-09-19 18:32:50 +0300 |
---|---|---|
committer | Mike Durnosvistov <mdurnosvistov@mirantis.com> | 2014-11-20 11:19:16 +0200 |
commit | e8c0b822f0ef4164d3752a1d8307b55fe4183a3c (patch) | |
tree | 76db903c019721108d136060f25fe9c5245eda2f /HACKING.rst | |
parent | b7535793afb4e40d8920a85bb44a894a6c6af1c2 (diff) | |
download | nova-e8c0b822f0ef4164d3752a1d8307b55fe4183a3c.tar.gz |
Replacement `_` on `_LW` in all LOG.warning part 1
oslo.i18n uses different marker functions to separate the
translatable messages into different catalogs, which the translation
teams can prioritize translating. For details, please refer to:
http://docs.openstack.org/developer/oslo.i18n/guidelines.html#guidelines-for-use-in-openstack
There were not marker fuctions some places in directory network.
This commit makes changes:
* Add missing marker functions
* Use ',' instead of '%' while adding variables to log messages
Added a hacking rule for the warning about checking
translation for it and checking logging level `warning` instead
alias `warn`.
Change-Id: I2bced49dc5a0408a94d5d20d85b20c682886edbe
Diffstat (limited to 'HACKING.rst')
-rw-r--r-- | HACKING.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst index 042d7773a8..e5c4010d57 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -42,6 +42,8 @@ Nova Specific Commandments - [N327] assert_called_once() is not a valid method - [N328] Validate that LOG.info messages use _LI. - [N329] Validate that LOG.exception messages use _LE. +- [N330] Validate that LOG.warning messages use _LW. +- [N331] Change LOG.warn on LOG.warning. Creating Unit Tests ------------------- |