Show More
@@ -207,6 +207,10 b' class HTTPApplication(object):' | |||||
207 | self.handle_vcs_exception, context=Exception, |
|
207 | self.handle_vcs_exception, context=Exception, | |
208 | custom_predicates=[self.is_vcs_exception]) |
|
208 | custom_predicates=[self.is_vcs_exception]) | |
209 |
|
209 | |||
|
210 | self.config.add_view( | |||
|
211 | self.general_error_handler, context=Exception) | |||
|
212 | ||||
|
213 | ||||
210 | def wsgi_app(self): |
|
214 | def wsgi_app(self): | |
211 | return self.config.make_wsgi_app() |
|
215 | return self.config.make_wsgi_app() | |
212 |
|
216 | |||
@@ -359,6 +363,12 b' class HTTPApplication(object):' | |||||
359 | # Re-raise exception if we can not handle it. |
|
363 | # Re-raise exception if we can not handle it. | |
360 | raise exception |
|
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 | class ResponseFilter(object): |
|
373 | class ResponseFilter(object): | |
364 |
|
374 |
General Comments 0
You need to be logged in to leave comments.
Login now