diff options
author | bnewbold <bnewbold@archive.org> | 2021-12-16 02:45:10 +0000 |
---|---|---|
committer | bnewbold <bnewbold@archive.org> | 2021-12-16 02:45:10 +0000 |
commit | 1632a07d581e4f17148378ebcc6fc6c162ee430a (patch) | |
tree | 192b1924f0dff0b7d9792a17a8ef58088a5c3fb8 /python/fatcat_web/__init__.py | |
parent | b9d5c3853fe70663b0eff101c9ac4a1cbfd354e7 (diff) | |
parent | a49df4d8f6c08ecd7a5b97a8a538b4a6f419e015 (diff) | |
download | fatcat-1632a07d581e4f17148378ebcc6fc6c162ee430a.tar.gz fatcat-1632a07d581e4f17148378ebcc6fc6c162ee430a.zip |
Merge branch 'martin-sentry-sdk' into 'master'
move from raven to sentry_sdk
See merge request webgroup/fatcat!135
Diffstat (limited to 'python/fatcat_web/__init__.py')
-rw-r--r-- | python/fatcat_web/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py index 5cb56d0b..a89c5bbe 100644 --- a/python/fatcat_web/__init__.py +++ b/python/fatcat_web/__init__.py @@ -13,7 +13,8 @@ from flask_mwoauth import MWOAuth from flask_uuid import FlaskUUID from flask_wtf.csrf import CSRFProtect from loginpass import GitHub, Gitlab, ORCiD, create_flask_blueprint -from raven.contrib.flask import Sentry +import sentry_sdk +from sentry_sdk.integrations.flask import FlaskIntegration from fatcat_web.types import AnyResponse from fatcat_web.web_config import Config @@ -44,7 +45,7 @@ login_manager.login_view = "/auth/login" oauth = OAuth(app) # Grabs sentry config from SENTRY_DSN environment variable -sentry = Sentry(app) +sentry_sdk.init(integrations=[FlaskIntegration()]) conf = fatcat_openapi_client.Configuration() conf.host = Config.FATCAT_API_HOST |