supporting the ability to push exceptions to sentry (#843)

This commit is contained in:
kevgliss 2017-06-29 14:12:38 -07:00 committed by GitHub
parent e4f5224f42
commit 169dcb86e2
3 changed files with 6 additions and 1 deletions

View File

@ -20,3 +20,6 @@ smtp_mail = Mail()
from lemur.metrics import Metrics
metrics = Metrics()
from raven.contrib.flask import Sentry
sentry = Sentry()

View File

@ -19,7 +19,7 @@ from logging.handlers import RotatingFileHandler
from flask import Flask
from lemur.common.health import mod as health
from lemur.extensions import db, migrate, principal, smtp_mail, metrics
from lemur.extensions import db, migrate, principal, smtp_mail, metrics, sentry
DEFAULT_BLUEPRINTS = (
@ -121,6 +121,7 @@ def configure_extensions(app):
principal.init_app(app)
smtp_mail.init_app(app)
metrics.init_app(app)
sentry.init_app(app)
def configure_blueprints(app, blueprints):

View File

@ -62,6 +62,7 @@ install_requires = [
'retrying==1.3.3',
'tabulate==0.7.7',
'pem==16.1.0',
'raven[flask]==6.1.0',
'paramiko==2.2.1' # required for lemur_linuxdst plugin
]