Commit 31853d49 by Awais Jibran

Merge pull request #11495 from edx/aj/tnl4115-improve-log-get-course-section

Use Course ID in logging an exception
parents 57af11c0 5be6d313
......@@ -289,8 +289,8 @@ def get_course_info_section(request, user, course, section_key):
except Exception: # pylint: disable=broad-except
html = render_to_string('courseware/error-message.html', None)
log.exception(
u"Error rendering course=%s, section_key=%s",
course, section_key
u"Error rendering course_id=%s, section_key=%s",
unicode(course.id), section_key
)
return html
......
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