From 7ca10fb770934f78f3df1cc3f47a6613c4c62c13 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt <33317356+villebro@users.noreply.github.com> Date: Tue, 22 Mar 2022 18:34:41 +0200 Subject: [PATCH] fix(cache): only warn about fallback cache for non-debug mode (#19305) --- superset/utils/cache_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/utils/cache_manager.py b/superset/utils/cache_manager.py index 31752bbf67..f7bb8d9e8f 100644 --- a/superset/utils/cache_manager.py +++ b/superset/utils/cache_manager.py @@ -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`. "