From 40951bc7f5509f891f2a4780a6d61d0d44bb7f8e Mon Sep 17 00:00:00 2001 From: Nimisha Asthagiri Date: Mon, 25 Apr 2016 14:30:50 -0400 Subject: [PATCH] Change BlockStructure logging from DEBUG to INFO --- openedx/core/lib/block_structure/cache.py | 8 ++++---- openedx/core/lib/block_structure/transformers.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openedx/core/lib/block_structure/cache.py b/openedx/core/lib/block_structure/cache.py index cbce9729e3..87cdfc4287 100644 --- a/openedx/core/lib/block_structure/cache.py +++ b/openedx/core/lib/block_structure/cache.py @@ -48,7 +48,7 @@ class BlockStructureCache(object): self._encode_root_cache_key(block_structure.root_block_usage_key), zp_data_to_cache ) - logger.debug( + logger.info( "Wrote BlockStructure %s to cache, size: %s", block_structure.root_block_usage_key, len(zp_data_to_cache), @@ -77,13 +77,13 @@ class BlockStructureCache(object): # Find root_block_usage_key in the cache. zp_data_from_cache = self._cache.get(self._encode_root_cache_key(root_block_usage_key)) if not zp_data_from_cache: - logger.debug( + logger.info( "Did not find BlockStructure %r in the cache.", root_block_usage_key, ) return None else: - logger.debug( + logger.info( "Read BlockStructure %r from cache, size: %s", root_block_usage_key, len(zp_data_from_cache), @@ -109,7 +109,7 @@ class BlockStructureCache(object): the cache. """ self._cache.delete(self._encode_root_cache_key(root_block_usage_key)) - logger.debug( + logger.info( "Deleted BlockStructure %r from the cache.", root_block_usage_key, ) diff --git a/openedx/core/lib/block_structure/transformers.py b/openedx/core/lib/block_structure/transformers.py index 493dcebde2..d306ea18b0 100644 --- a/openedx/core/lib/block_structure/transformers.py +++ b/openedx/core/lib/block_structure/transformers.py @@ -99,7 +99,7 @@ class BlockStructureTransformers(object): outdated_transformers.append(transformer) if outdated_transformers: - logger.debug( + logger.info( "Collected Block Structure data for the following transformers is outdated: '%s'.", [(transformer.name(), transformer.VERSION) for transformer in outdated_transformers], )