summaryrefslogtreecommitdiff
path: root/oslo_middleware/catch_errors.py
diff options
context:
space:
mode:
authorlioplhp <hpliu5898@fiberhome.com>2017-03-23 18:05:16 +0800
committerlioplhp <hpliu5898@fiberhome.com>2017-03-28 14:10:19 +0800
commit2dc2cf3c31ca14ac2d4894b1cd98a4d8e4a76b9d (patch)
tree706d9ef404a661c65806c44126ffe3f9ca1bd73f /oslo_middleware/catch_errors.py
parentc4f2263d498259abbe9140efc69b5357f3107940 (diff)
downloadoslo-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.py5
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