Commit d448aa13 by Chris Dodge

remove debug log messages

parent 446397b2
...@@ -339,20 +339,16 @@ class MongoModuleStore(ModuleStoreBase): ...@@ -339,20 +339,16 @@ class MongoModuleStore(ModuleStoreBase):
if not force_refresh: if not force_refresh:
# see if we are first in the request cache (if present) # see if we are first in the request cache (if present)
if self.request_cache is not None and key in self.request_cache.data.get('metadata_inheritance', {}): if self.request_cache is not None and key in self.request_cache.data.get('metadata_inheritance', {}):
logging.debug('***** HIT IN REQUEST CACHE')
return self.request_cache.data['metadata_inheritance'][key] return self.request_cache.data['metadata_inheritance'][key]
# then look in any caching subsystem (e.g. memcached) # then look in any caching subsystem (e.g. memcached)
if self.metadata_inheritance_cache_subsystem is not None: if self.metadata_inheritance_cache_subsystem is not None:
tree = self.metadata_inheritance_cache_subsystem.get(key, {}) tree = self.metadata_inheritance_cache_subsystem.get(key, {})
if tree:
logging.debug('***** HIT IN MEMCACHED')
else: else:
logging.warning('Running MongoModuleStore without a metadata_inheritance_cache_subsystem. This is OK in localdev and testing environment. Not OK in production.') logging.warning('Running MongoModuleStore without a metadata_inheritance_cache_subsystem. This is OK in localdev and testing environment. Not OK in production.')
if not tree: if not tree:
# if not in subsystem, or we are on force refresh, then we have to compute # if not in subsystem, or we are on force refresh, then we have to compute
logging.debug('***** COMPUTING METADATA')
tree = self.compute_metadata_inheritance_tree(location) tree = self.compute_metadata_inheritance_tree(location)
# now populate a request_cache, if available # now populate a request_cache, if available
......
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