fix: reduce alert error to warning (#27744)

(cherry picked from commit 70da454bbc)
This commit is contained in:
Elizabeth Thompson 2024-03-27 18:10:22 -07:00 committed by Michael S. Molina
parent 2fa1b35c16
commit bb5c0b4086

View File

@ -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(