diff options
Diffstat (limited to 'talerbank/app/middleware.py')
-rw-r--r-- | talerbank/app/middleware.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/talerbank/app/middleware.py b/talerbank/app/middleware.py index cff5006..af2a748 100644 --- a/talerbank/app/middleware.py +++ b/talerbank/app/middleware.py @@ -99,10 +99,12 @@ class ExceptionMiddleware: # @param request Django-specific HTTP request. # @param exception the exception raised from the bank. def process_exception(self, request, exception): - LOGGER.error(repr(exception)) + LOGGER.error(f"Error: {exception}, while serving {request.get_full_path()}") if not hasattr(exception, "taler_error_code"): + print("####### Exception without Taler Error Code ########") traceback.print_exc() + print("###################################################") exception = UnhandledException() render_to = self.render.get(request.path) |