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,