From ebb737b94a38be763b4cdeca5882e13cba7c85c3 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 20 Jul 2012 11:16:41 -0400 Subject: [PATCH] Add better logging to capa_module during problem checking --- common/lib/xmodule/xmodule/capa_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index ea9c7fd52c..980e1386c3 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -425,7 +425,7 @@ class CapaModule(XModule): # TODO (vshnayder): why is this line here? #self.lcp = LoncapaProblem(self.definition['data'], # id=lcp_id, state=old_state, system=self.system) - traceback.print_exc() + log.exception("StudentInputError in capa_module:problem_check") return {'success': inst.message} except Exception, err: # TODO: why is this line here? @@ -435,7 +435,7 @@ class CapaModule(XModule): msg = "Error checking problem: " + str(err) msg += '\nTraceback:\n' + traceback.format_exc() return {'success': msg} - traceback.print_exc() + log.exception("Error in capa_module problem checking") raise Exception("error in capa_module") self.attempts = self.attempts + 1