mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
fix(cache): only warn about fallback cache for non-debug mode (#19305)
This commit is contained in:
parent
b05e7dbf2a
commit
7ca10fb770
@ -41,7 +41,7 @@ class CacheManager:
|
|||||||
cache_config = app.config[cache_config_key]
|
cache_config = app.config[cache_config_key]
|
||||||
cache_type = cache_config.get("CACHE_TYPE")
|
cache_type = cache_config.get("CACHE_TYPE")
|
||||||
if required and cache_type in (None, "SupersetMetastoreCache"):
|
if required and cache_type in (None, "SupersetMetastoreCache"):
|
||||||
if cache_type is None:
|
if cache_type is None and not app.debug:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"Falling back to the built-in cache, that stores data in the "
|
"Falling back to the built-in cache, that stores data in the "
|
||||||
"metadata database, for the followinng cache: `%s`. "
|
"metadata database, for the followinng cache: `%s`. "
|
||||||
|
Loading…
Reference in New Issue
Block a user