mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
fix: reduce alert error to warning (#27744)
(cherry picked from commit 70da454bbc
)
This commit is contained in:
parent
2fa1b35c16
commit
bb5c0b4086
@ -171,7 +171,7 @@ class AlertCommand(BaseCommand):
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user