diff options
-rw-r--r-- | talerbank/app/middleware.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/talerbank/app/middleware.py b/talerbank/app/middleware.py index ef43625..2264482 100644 --- a/talerbank/app/middleware.py +++ b/talerbank/app/middleware.py @@ -97,7 +97,6 @@ class ExceptionMiddleware: if so. Otherwise, it lets the native handler operate. """ LOGGER.error(f"Error: {exception}, while serving {request.get_full_path()}") - # LOGGER.error(f"Stack trace: {traceback.format_exc()}") if hasattr(exception, "taler_error_code"): render_to = self.render.get(request.path) @@ -111,6 +110,7 @@ class ExceptionMiddleware: set_session_hint(request, success=False, hint=exception.hint) return redirect(render_to) else: + LOGGER.error(f"Stack trace: {traceback.format_exc()}") return JsonResponse( dict( code=ErrorCode.BANK_UNMANAGED_EXCEPTION, |