Commit 5be6d313 by Awais Jibran

Use Course ID in logging an exception

TNL-4115
parent 406066ca
...@@ -289,8 +289,8 @@ def get_course_info_section(request, user, course, section_key): ...@@ -289,8 +289,8 @@ def get_course_info_section(request, user, course, section_key):
except Exception: # pylint: disable=broad-except except Exception: # pylint: disable=broad-except
html = render_to_string('courseware/error-message.html', None) html = render_to_string('courseware/error-message.html', None)
log.exception( log.exception(
u"Error rendering course=%s, section_key=%s", u"Error rendering course_id=%s, section_key=%s",
course, section_key unicode(course.id), section_key
) )
return html 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