Commit dda92908 by David Ormsbee

Simple logging so we can test loggers on staging.

parent b8087c10
...@@ -20,6 +20,8 @@ from models import StudentModule ...@@ -20,6 +20,8 @@ from models import StudentModule
from module_render import * from module_render import *
import content_parser import content_parser
log = logging.getLogger("mitx.courseware")
etree.set_default_parser(etree.XMLParser(dtd_validation=False, load_dtd=False, etree.set_default_parser(etree.XMLParser(dtd_validation=False, load_dtd=False,
remove_comments = True)) remove_comments = True))
...@@ -30,7 +32,11 @@ def profile(request): ...@@ -30,7 +32,11 @@ def profile(request):
We need to allow the user to change some of these settings .''' We need to allow the user to change some of these settings .'''
if not request.user.is_authenticated(): if not request.user.is_authenticated():
return redirect('/') return redirect('/')
log.info("Profile called")
logging.info("Now the root")
logging.getLogger("tracking").info("something")
dom=content_parser.course_file(request.user) dom=content_parser.course_file(request.user)
hw=[] hw=[]
course = dom.xpath('//course/@name')[0] course = dom.xpath('//course/@name')[0]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment