summaryrefslogtreecommitdiff
path: root/openstack/common/middleware/catch_errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/common/middleware/catch_errors.py')
-rw-r--r--openstack/common/middleware/catch_errors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/openstack/common/middleware/catch_errors.py b/openstack/common/middleware/catch_errors.py
index 4de4120..6208d3c 100644
--- a/openstack/common/middleware/catch_errors.py
+++ b/openstack/common/middleware/catch_errors.py
@@ -22,7 +22,7 @@ to hide internal errors from API response.
import webob.dec
import webob.exc
-from openstack.common.gettextutils import _ # noqa
+from openstack.common.gettextutils import _LE
from openstack.common import log as logging
from openstack.common.middleware import base
@@ -37,7 +37,7 @@ class CatchErrorsMiddleware(base.Middleware):
try:
response = req.get_response(self.application)
except Exception:
- LOG.exception(_('An error occurred during '
- 'processing the request: %s'))
+ LOG.exception(_LE('An error occurred during '
+ 'processing the request: %s'))
response = webob.exc.HTTPInternalServerError()
return response