From 07aa9a73ee3366f8c0120e6871548fcb4ec090bb Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Mon, 17 Feb 2020 12:21:53 +0100 Subject: [PATCH] Adds debug logging of all request to track possible bugs (stored in file only) --- pisa/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pisa/api.py b/pisa/api.py index ffd7c0e..c7b4e20 100644 --- a/pisa/api.py +++ b/pisa/api.py @@ -42,6 +42,9 @@ class API: logger.info("Received add_appointment request", from_addr="{}".format(remote_addr)) + # FIXME: Logging every request so we can get better understanding of bugs in the alpha + logger.debug("Request details", data="{}".format(request.data)) + if request.is_json: # Check content type once if properly defined request_data = json.loads(request.get_json())