comparison libervia/server/pages.py @ 1226:011147d7a931

pages: removed a decode() in internal error logging
author Goffi <goffi@goffi.org>
date Fri, 08 Nov 2019 10:52:25 +0100
parents 62bf4f87c249
children 987595a254b0
comparison
equal deleted inserted replaced
1225:63f7a2bd1d4a 1226:011147d7a931
1275 """called if an error is not catched""" 1275 """called if an error is not catched"""
1276 if failure_.check(BridgeException) and failure_.value.condition == 'not-allowed': 1276 if failure_.check(BridgeException) and failure_.value.condition == 'not-allowed':
1277 log.warning("not allowed exception catched") 1277 log.warning("not allowed exception catched")
1278 self.pageError(request, C.HTTP_FORBIDDEN) 1278 self.pageError(request, C.HTTP_FORBIDDEN)
1279 log.error(_("Uncatched error for HTTP request on {url}: {msg}") 1279 log.error(_("Uncatched error for HTTP request on {url}: {msg}")
1280 .format(url=request.URLPath().decode(), msg=failure_)) 1280 .format(url=request.URLPath(), msg=failure_))
1281 self.pageError(request, C.HTTP_INTERNAL_ERROR) 1281 self.pageError(request, C.HTTP_INTERNAL_ERROR)
1282 1282
1283 def _on_data_post_error(self, failure_, request): 1283 def _on_data_post_error(self, failure_, request):
1284 failure_.trap(exceptions.DataError) 1284 failure_.trap(exceptions.DataError)
1285 # something is wrong with the posted data, we re-display the page with a 1285 # something is wrong with the posted data, we re-display the page with a