Adding health exception tracking. (#977)

This commit is contained in:
kevgliss 2017-10-24 14:04:51 -07:00 committed by GitHub
parent 9319dda0ec
commit bbf73c48a3
1 changed files with 3 additions and 1 deletions

View File

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