diff --git a/lemur/common/health.py b/lemur/common/health.py index 1dfb2732..c48c1fae 100644 --- a/lemur/common/health.py +++ b/lemur/common/health.py @@ -8,6 +8,7 @@ """ from flask import Blueprint from lemur.database import db +from lemur.extensions import sentry mod = Blueprint('healthCheck', __name__) @@ -17,7 +18,8 @@ def health(): try: if healthcheck(db): return 'ok' - except: + except Exception: + sentry.captureException() return 'db check failed'