fix(cache): only warn about fallback cache for non-debug mode (#19305)

This commit is contained in:
Ville Brofeldt 2022-03-22 18:34:41 +02:00 committed by GitHub
parent b05e7dbf2a
commit 7ca10fb770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class CacheManager:
cache_config = app.config[cache_config_key]
cache_type = cache_config.get("CACHE_TYPE")
if required and cache_type in (None, "SupersetMetastoreCache"):
if cache_type is None:
if cache_type is None and not app.debug:
logger.warning(
"Falling back to the built-in cache, that stores data in the "
"metadata database, for the followinng cache: `%s`. "