mirror of
https://github.com/apache/superset.git
synced 2024-09-16 10:39:55 -04:00
chore(cache): Tuning logging in cache manager (#23266)
This commit is contained in:
parent
7d8383cbd5
commit
006f3dd88c
@ -141,7 +141,7 @@ class QueryCacheManager:
|
|||||||
|
|
||||||
cache_value = _cache[region].get(key)
|
cache_value = _cache[region].get(key)
|
||||||
if cache_value:
|
if cache_value:
|
||||||
logger.info("Cache key: %s", key)
|
logger.debug("Cache key: %s", key)
|
||||||
stats_logger.incr("loading_from_cache")
|
stats_logger.incr("loading_from_cache")
|
||||||
try:
|
try:
|
||||||
query_cache.df = cache_value["df"]
|
query_cache.df = cache_value["df"]
|
||||||
@ -165,7 +165,7 @@ class QueryCacheManager:
|
|||||||
error_msg_from_exception(ex),
|
error_msg_from_exception(ex),
|
||||||
exc_info=True,
|
exc_info=True,
|
||||||
)
|
)
|
||||||
logger.info("Serving from cache")
|
logger.debug("Serving from cache")
|
||||||
|
|
||||||
if force_cached and not query_cache.is_loaded:
|
if force_cached and not query_cache.is_loaded:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
|
Loading…
Reference in New Issue
Block a user