Commit fa61bdf6 by Chris Dodge

remove debugging logging

parent 5298f54f
......@@ -6,14 +6,11 @@ from xmodule.modulestore import InvalidLocationError
from cache_toolbox.core import get_cached_content, set_cached_content
from xmodule.exceptions import NotFoundError
import logging
class StaticContentServer(object):
def process_request(self, request):
# look to see if the request is prefixed with 'c4x' tag
if request.path.startswith('/' + XASSET_LOCATION_TAG + '/'):
logging.debug('**** path = {0}'.format(request.path))
try:
loc = StaticContent.get_location_from_path(request.path)
except InvalidLocationError:
......@@ -27,10 +24,8 @@ class StaticContentServer(object):
if content is None:
# nope, not in cache, let's fetch from DB
try:
logging.debug('!!!! loc = {0}'.format(loc))
content = contentstore().find(loc, as_stream=True)
except NotFoundError:
logging.debug('**** NOT FOUND')
response = HttpResponse()
response.status_code = 404
return response
......
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