Skip to content

Commit

Permalink
feat: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharis278 committed Oct 5, 2023
1 parent a401e37 commit 2375c54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions edx_exams/apps/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2375c54

Please sign in to comment.