Skip to content

Commit

Permalink
Send error to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
gherceg committed Aug 29, 2024
1 parent ccfc434 commit 8072d46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions corehq/apps/hqadmin/service_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

import attr
import gevent

from dimagi.utils.logging import notify_exception

from corehq.apps.app_manager.models import Application
from corehq.apps.change_feed.connection import (
get_kafka_client,
Expand Down Expand Up @@ -124,6 +127,7 @@ def check_elasticsearch():
try:
cluster_health = check_es_cluster_health()
except Exception:
notify_exception(None, message="Error while checking elasticsearch cluster health")
return ServiceStatus(False, "Something went wrong checking cluster health")

if cluster_health == 'red':
Expand Down

0 comments on commit 8072d46

Please sign in to comment.