revert logging instantiation to use 'mitx.' + __name__

This commit is contained in:
ichuang
2012-06-12 13:27:49 -04:00
committed by Matthew Mongeau
parent e56a19b4e8
commit 3e2ef6b8dc
2 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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