diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-21 13:33:35 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-21 13:41:15 -0800 |
commit | 90514012f90afa7de80bd6d5ee18f68a9b9e89c8 (patch) | |
tree | d4edb1fa5d9ed9eaa4d30c31b6c63bb4aea65c77 /python/fatcat_web | |
parent | 0ebace294f697326fcfd9686bd956f256b166b04 (diff) | |
download | fatcat-90514012f90afa7de80bd6d5ee18f68a9b9e89c8.tar.gz fatcat-90514012f90afa7de80bd6d5ee18f68a9b9e89c8.zip |
enable sentry exceptions for fatcat-web
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py index 8f487181..3c790e7a 100644 --- a/python/fatcat_web/__init__.py +++ b/python/fatcat_web/__init__.py @@ -2,6 +2,7 @@ from flask import Flask from flask_uuid import FlaskUUID from flask_debugtoolbar import DebugToolbarExtension +from raven.contrib.flask import Sentry from web_config import Config import fatcat_client @@ -11,6 +12,9 @@ app.config.from_object(Config) toolbar = DebugToolbarExtension(app) FlaskUUID(app) +# Grabs sentry config from SENTRY_DSN environment variable +sentry = Sentry(app) + conf = fatcat_client.Configuration() conf.host = "http://localhost:9411/v0" api = fatcat_client.DefaultApi(fatcat_client.ApiClient(conf)) |