Commit 86ded213 by Attiya Ishaque Committed by GitHub

Merge pull request #383 from edx/attiya/EDUCATOR-1441-add-logging

Add logging to find out the cause of error.
parents 5400744d da59274b
...@@ -313,6 +313,10 @@ def get_exam_by_content_id(course_id, content_id): ...@@ -313,6 +313,10 @@ def get_exam_by_content_id(course_id, content_id):
""" """
proctored_exam = ProctoredExam.get_exam_by_content_id(course_id, content_id) proctored_exam = ProctoredExam.get_exam_by_content_id(course_id, content_id)
if proctored_exam is None: if proctored_exam is None:
log.exception(
'Cannot find the proctored exams in this course %s with content_id: %s',
course_id, content_id
)
raise ProctoredExamNotFoundException raise ProctoredExamNotFoundException
serialized_exam_object = ProctoredExamSerializer(proctored_exam) serialized_exam_object = ProctoredExamSerializer(proctored_exam)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment