From 70da454bbce107c624efda9535f50f7b3ce411b2 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Wed, 27 Mar 2024 18:10:22 -0700 Subject: [PATCH] fix: reduce alert error to warning (#27744) --- superset/commands/report/alert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/commands/report/alert.py b/superset/commands/report/alert.py index 5604fe056696a..0e5d5401f7001 100644 --- a/superset/commands/report/alert.py +++ b/superset/commands/report/alert.py @@ -171,7 +171,7 @@ def _execute_query(self) -> pd.DataFrame: logger.warning("A timeout occurred while executing the alert query: %s", ex) raise AlertQueryTimeout() from ex except Exception as ex: - logger.exception("An error occurred when running alert query") + logger.warning("An error occurred when running alert query") # The exception message here can reveal to much information to malicious # users, so we raise a generic message. raise AlertQueryError(