Commit 1b6778f6 by Rabia Iftikhar Committed by GitHub

Merge pull request #14932 from edx/ri/TNL-6666-500-error-courseware

update log info
parents 77a347c1 186e820b
...@@ -393,11 +393,16 @@ class CoursewareIndex(View): ...@@ -393,11 +393,16 @@ class CoursewareIndex(View):
courseware_context['sequence_title'] = display_items[self.section.position - 1] \ courseware_context['sequence_title'] = display_items[self.section.position - 1] \
.display_name_with_default .display_name_with_default
except IndexError: except IndexError:
log.info("Course section {} with position {} and total section display items: {}".format( log.exception(
"IndexError loading courseware for user %s, course %s, section %s, position %d. Total items: %d. URL: %s",
self.real_user.username,
self.course.id,
self.section.display_name_with_default, self.section.display_name_with_default,
self.section.position, self.section.position,
len(display_items), len(display_items),
)) self.url,
)
raise
return courseware_context return courseware_context
def _add_entrance_exam_to_context(self, courseware_context): def _add_entrance_exam_to_context(self, courseware_context):
......
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