summaryrefslogtreecommitdiff
path: root/talerbank/app/middleware.py
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-12-03 19:21:33 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2019-12-03 19:21:46 +0100
commit81bc320721b461578948e11d1a062d45d2758c77 (patch)
tree0165e4794cd86d45fb3a1f0786a294e39fa8227f /talerbank/app/middleware.py
parentc2562840833211474adf601ac1f8cb943dcf839b (diff)
downloadbank-81bc320721b461578948e11d1a062d45d2758c77.tar.gz
bank-81bc320721b461578948e11d1a062d45d2758c77.tar.bz2
bank-81bc320721b461578948e11d1a062d45d2758c77.zip
making logs more verbose
Diffstat (limited to 'talerbank/app/middleware.py')
-rw-r--r--talerbank/app/middleware.py4
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)