diff --git a/courseware/capa/capa_problem.py b/courseware/capa/capa_problem.py index b7ac8940fe..032b5d41b4 100644 --- a/courseware/capa/capa_problem.py +++ b/courseware/capa/capa_problem.py @@ -1,4 +1,5 @@ import copy +import logging import math import numpy import os @@ -19,6 +20,8 @@ from responsetypes import numericalresponse, formularesponse, customresponse, sc import calc import eia +log = logging.getLogger("mitx.courseware") + response_types = {'numericalresponse':numericalresponse, 'formularesponse':formularesponse, 'customresponse':customresponse, @@ -80,6 +83,7 @@ class LoncapaProblem(object): self.seed=struct.unpack('i', os.urandom(4))[0] ## Parse XML file + log.debug(u"LoncapaProblem() opening file {0}".format(filename)) file_text = open(filename).read() # Convert startouttext and endouttext to proper # TODO: Do with XML operations