From 2375c54e5d97d6076f54b41bf97adb4bb6fc2d45 Mon Sep 17 00:00:00 2001 From: Zach Hancock Date: Thu, 5 Oct 2023 17:06:31 -0400 Subject: [PATCH] feat: logs --- edx_exams/apps/core/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/edx_exams/apps/core/api.py b/edx_exams/apps/core/api.py index 84a66155..6fa04d0f 100644 --- a/edx_exams/apps/core/api.py +++ b/edx_exams/apps/core/api.py @@ -150,6 +150,10 @@ def reset_exam_attempt(attempt, requesting_user): course_key = CourseKey.from_string(attempt.exam.course_id) usage_key = UsageKey.from_string(attempt.exam.content_id) + log.info( + f'Resetting exam attempt for user_id={attempt.user.id} in exam={attempt.exam.id} ' + ) + attempt.delete() emit_exam_attempt_reset_event( attempt.user,