##// END OF EJS Templates
http: added catch-all exception handler to show errors in logs.
marcink -
r150:ed9a1494 default
parent child Browse files
Show More
@@ -207,6 +207,10 b' class HTTPApplication(object):'
207 207 self.handle_vcs_exception, context=Exception,
208 208 custom_predicates=[self.is_vcs_exception])
209 209
210 self.config.add_view(
211 self.general_error_handler, context=Exception)
212
213
210 214 def wsgi_app(self):
211 215 return self.config.make_wsgi_app()
212 216
@@ -359,6 +363,12 b' class HTTPApplication(object):'
359 363 # Re-raise exception if we can not handle it.
360 364 raise exception
361 365
366 def general_error_handler(self, exception, request):
367 log.exception(
368 'error occurred handling this request for path: %s',
369 request.path)
370 raise exception
371
362 372
363 373 class ResponseFilter(object):
364 374
General Comments 0
You need to be logged in to leave comments. Login now