summaryrefslogtreecommitdiff
path: root/oslo_middleware/catch_errors.py
diff options
context:
space:
mode:
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