diff options
author | lioplhp <hpliu5898@fiberhome.com> | 2017-03-23 18:05:16 +0800 |
---|---|---|
committer | lioplhp <hpliu5898@fiberhome.com> | 2017-03-28 14:10:19 +0800 |
commit | 2dc2cf3c31ca14ac2d4894b1cd98a4d8e4a76b9d (patch) | |
tree | 706d9ef404a661c65806c44126ffe3f9ca1bd73f /oslo_middleware/catch_errors.py | |
parent | c4f2263d498259abbe9140efc69b5357f3107940 (diff) | |
download | oslo-middleware-394ae498da69d28d25cd9ed21cd6a4284dac9348.tar.gz |
Remove log translations3.25.0
Log messages are no longer being translated.
This removes all use of the _LE, _LI, and _LW
translation markers to simplify logging and to
avoid confusion with new contributions.
See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html
Change-Id: I797b5f0374d6f8ca1cb4641246cab414aa5466dd
Diffstat (limited to 'oslo_middleware/catch_errors.py')
-rw-r--r-- | oslo_middleware/catch_errors.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/oslo_middleware/catch_errors.py b/oslo_middleware/catch_errors.py index 8ffd252..220d704 100644 --- a/oslo_middleware/catch_errors.py +++ b/oslo_middleware/catch_errors.py @@ -19,7 +19,6 @@ import re import webob.dec import webob.exc -from oslo_middleware._i18n import _LE from oslo_middleware import base @@ -41,7 +40,7 @@ class CatchErrors(base.ConfigurableMiddleware): response = req.get_response(self.application) except Exception: req_str = _TOKEN_RE.sub(r'\1: *****', req.as_text()) - LOG.exception(_LE('An error occurred during ' - 'processing the request: %s'), req_str) + LOG.exception('An error occurred during ' + 'processing the request: %s', req_str) response = webob.exc.HTTPInternalServerError() return response |