From 070e8808b1b6e4f0769a64207b8a60b0054a46d8 Mon Sep 17 00:00:00 2001 From: Cristiano Ferreira Date: Sun, 19 May 2024 15:42:31 +0100 Subject: [PATCH] Add logging to speaking grading. --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 95bfe9a..20d0b0e 100644 --- a/app.py +++ b/app.py @@ -369,7 +369,7 @@ def grade_speaking_task_1(): delete_files_older_than_one_day(AUDIO_FILES_PATH) sound_file_name = AUDIO_FILES_PATH + str(uuid.uuid4()) logging.info("POST - speaking_task_1 - Received request to grade speaking task 1. " - "Use this id to track the logs: " + str(request_id)) + "Use this id to track the logs: " + str(request_id) + " - Request data: " + str(request.get_json())) try: data = request.get_json() question = data.get('question') @@ -474,7 +474,7 @@ def grade_speaking_task_2(): delete_files_older_than_one_day(AUDIO_FILES_PATH) sound_file_name = AUDIO_FILES_PATH + str(uuid.uuid4()) logging.info("POST - speaking_task_2 - Received request to grade speaking task 2. " - "Use this id to track the logs: " + str(request_id)) + "Use this id to track the logs: " + str(request_id) + " - Request data: " + str(request.get_json())) try: data = request.get_json() question = data.get('question') @@ -606,7 +606,7 @@ def grade_speaking_task_3(): request_id = uuid.uuid4() delete_files_older_than_one_day(AUDIO_FILES_PATH) logging.info("POST - speaking_task_3 - Received request to grade speaking task 3. " - "Use this id to track the logs: " + str(request_id)) + "Use this id to track the logs: " + str(request_id) + " - Request data: " + str(request.get_json())) try: data = request.get_json() answers = data.get('answers')