Added exc_info=True to log.warning

Changed log.exception to log.warning
This commit is contained in:
Will Daly
2013-03-27 17:11:02 -04:00
parent f038237ee9
commit 9c671163fd
3 changed files with 6 additions and 3 deletions

View File

@@ -735,7 +735,8 @@ class CapaModule(CapaFields, XModule):
self.set_state_from_lcp()
except (StudentInputError, ResponseError, LoncapaProblemError) as inst:
log.exception("StudentInputError in capa_module:problem_check")
log.warning("StudentInputError in capa_module:problem_check",
exc_info=True)
# If the user is a staff member, include
# the full exception, including traceback,