trove/trove
Zhao Chao 2fd8c66f64 Remove log translations
According to discussions on the ML, log messages should not be
translated any more. This patch also:
* removes all usage of _LI, _LW, _LE, _LC;
* updates log translation hacking rule.

ML discussions:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

The original commit messages are kept as following to make a historic
note:

remove unwanted log translations

recent discussions on the ML have led to the decision to eliminate all
translations for messages that are destined for log files but retain
them for messages that are going to be returned as exceptions and
potentially shown to end users via an API. see [1], [2].

This change does that as follows.

1. If a string is being used to generate an exception, it will still
be translated. Still Trove used both _LE and _ for these translations,
there are some cases where _LE has been simply changed to _, and not
removed.

2. If a string is used for a logging message, remove the use of _,
_LE, _LW, _LI.

Also, I have long felt that we have had a creep of checks in the pep8
tests that apparently make the code easier to read. I strongly believe
that these kinds of "easier to read" things make sense if they are
followed across all projects and not just gratuitously added one
project at a time.

I've taken this opportunity to reduce the merge mess caused by this
change, to sync up our ignore flags with a long list of ignores from
Nova. When they made the change for removing log translation, they
could do it in an automated-way like I have because they didn't have
to deal with under and overindented lines for visual edit (E127). Same
for Cinder.

Changes 448443 [3] and 447839 [4] were inadequate because they only
addressed a little part of the problem, namely removing the use of
_LE, _LI, and _LW, and I think this is a change we don't need to
dribble in a few files at a time. The changes are straightforward and
should be taken in a single lump to make it easy to deal with the
merges coming.

[1] http://lists.openstack.org/pipermail/openstack-operators/2017-March/012887.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html
[3] https://review.openstack.org/448443
[4] https://review.openstack.org/447839

Co-Authored-By: Amrith Kumar <amrith@amrith.org>
Co-Authored-By: Valencia Serrao <vserrao@us.ibm.com>
Change-Id: I5f86c982469e625997fc8bd15c6fae0fc77a8c64
2018-01-24 17:21:26 +00:00
..
backup Remove log translations 2018-01-24 17:21:26 +00:00
cluster Remove log translations 2018-01-24 17:21:26 +00:00
cmd Remove log translations 2018-01-24 17:21:26 +00:00
common Remove log translations 2018-01-24 17:21:26 +00:00
conductor Remove log translations 2018-01-24 17:21:26 +00:00
configuration Remove log translations 2018-01-24 17:21:26 +00:00
datastore Merge "Fix some reST field lists in docstrings" 2017-06-15 06:41:52 +00:00
db Remove log translations 2018-01-24 17:21:26 +00:00
dns Handle log message interpolation by the logger part 6 2017-03-16 11:27:35 +01:00
extensions Remove log translations 2018-01-24 17:21:26 +00:00
flavor Add support for Oslo Policies to Trove 2016-12-06 21:51:21 +00:00
guestagent Remove log translations 2018-01-24 17:21:26 +00:00
hacking Remove log translations 2018-01-24 17:21:26 +00:00
instance Remove log translations 2018-01-24 17:21:26 +00:00
limits Handle isotime deprecation in oslo_utils.timeutils 2017-06-09 16:22:11 +00:00
module Remove log translations 2018-01-24 17:21:26 +00:00
network Remove log translations 2018-01-24 17:21:26 +00:00
quota Remove log translations 2018-01-24 17:21:26 +00:00
taskmanager Remove log translations 2018-01-24 17:21:26 +00:00
templates Remove checkpoint_segments validation rules 2018-01-23 16:38:10 -05:00
tests Remove log translations 2018-01-24 17:21:26 +00:00
volume_type Associate datastore, version with volume-type 2016-12-19 14:24:09 -05:00
README Rename from reddwarf to trove. 2013-06-24 14:11:15 -07:00
__init__.py fix the version info of trove to use pbr 2015-11-05 11:04:46 -06:00
rpc.py Merge "Change RPC dispatcher access_policy to DefaultRPCAccessPolicy" 2017-11-29 06:46:35 +00:00
version.py fix the version info of trove to use pbr 2015-11-05 11:04:46 -06:00
versions.py Removes XML api from trove 2014-03-10 00:16:49 +00:00

README

This is the trove code itself