diff --git a/common/lib/capa/capa_problem.py b/common/lib/capa/capa_problem.py index 77eaf95615..220d48ee0d 100644 --- a/common/lib/capa/capa_problem.py +++ b/common/lib/capa/capa_problem.py @@ -58,8 +58,7 @@ global_context = {'random': random, # These should be removed from HTML output, including all subelements html_problem_semantics = ["responseparam", "answer", "script","hintgroup"] -#log = logging.getLogger(__name__) -log = logging.getLogger('mitx.common.lib.capa.capa_problem') +log = logging.getLogger('mitx.' + __name__) #----------------------------------------------------------------------------- # main class for this module diff --git a/common/lib/capa/responsetypes.py b/common/lib/capa/responsetypes.py index 32c1c6783c..85e6311d61 100644 --- a/common/lib/capa/responsetypes.py +++ b/common/lib/capa/responsetypes.py @@ -26,8 +26,7 @@ from util import * from lxml import etree from lxml.html.soupparser import fromstring as fromstring_bs # uses Beautiful Soup!!! FIXME? -#log = logging.getLogger(__name__) -log = logging.getLogger('mitx.common.lib.capa.responsetypes') +log = logging.getLogger('mitx.' + __name__) #----------------------------------------------------------------------------- # Exceptions