aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web/__init__.py')
-rw-r--r--python/fatcat_web/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index 5cb56d0b..70f8ad4a 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -3,6 +3,7 @@ from typing import Any
import elasticsearch
import fatcat_openapi_client
+import sentry_sdk
from authlib.flask.client import OAuth
from flask import Flask
from flask.logging import create_logger
@@ -13,7 +14,7 @@ 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
+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
@@ -81,7 +82,7 @@ mwoauth = MWOAuth(
mwoauth.handshaker.user_agent = "fatcat.wiki;python_web_interface"
app.register_blueprint(mwoauth.bp, url_prefix="/auth/wikipedia")
-app.es_client = elasticsearch.Elasticsearch(Config.ELASTICSEARCH_BACKEND)
+app.es_client = elasticsearch.Elasticsearch(Config.ELASTICSEARCH_BACKEND, timeout=40.0)
from fatcat_web import auth, cors, editing_routes, forms, ref_routes, routes