diff options
author | Michael Barton <michael.barton@rackspace.com> | 2010-12-20 21:47:50 +0000 |
---|---|---|
committer | Michael Barton <michael.barton@rackspace.com> | 2010-12-20 21:47:50 +0000 |
commit | d7dd3ec0659aaee87f480bcbe5d3d5cdb33d8c5b (patch) | |
tree | f68c03c6d0d9f011bed45478c5ec5b56205c8924 /swift/common/middleware/catch_errors.py | |
parent | 977a2893ee09d0d62602c6c2e16b0c488a5bfa23 (diff) | |
download | swift-d7dd3ec0659aaee87f480bcbe5d3d5cdb33d8c5b.tar.gz |
gettext updates
Diffstat (limited to 'swift/common/middleware/catch_errors.py')
-rw-r--r-- | swift/common/middleware/catch_errors.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swift/common/middleware/catch_errors.py b/swift/common/middleware/catch_errors.py index e94133627..0dcedd201 100644 --- a/swift/common/middleware/catch_errors.py +++ b/swift/common/middleware/catch_errors.py @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +from gettext import gettext as _ + from webob import Request from webob.exc import HTTPServerError @@ -32,7 +34,7 @@ class CatchErrorMiddleware(object): try: return self.app(env, start_response) except Exception, err: - self.logger.exception('Error: %s' % err) + self.logger.exception(_('Error: %s'), err) resp = HTTPServerError(request=Request(env), body='An error occurred', content_type='text/plain') |