From 81bc320721b461578948e11d1a062d45d2758c77 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 3 Dec 2019 19:21:33 +0100 Subject: making logs more verbose --- talerbank/app/middleware.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'talerbank/app/middleware.py') 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) -- cgit v1.2.3