remove sentry AioHttpIntegration
This commit is contained in:
parent
ef45e28ab3
commit
184397dc92
12
server.py
12
server.py
|
@ -1,10 +1,10 @@
|
|||
import os
|
||||
import ssl
|
||||
from datetime import timedelta
|
||||
|
||||
import arrow
|
||||
import flask_profiler
|
||||
import os
|
||||
import sentry_sdk
|
||||
import ssl
|
||||
from flask import (
|
||||
Flask,
|
||||
redirect,
|
||||
|
@ -19,7 +19,6 @@ from flask_admin import Admin
|
|||
from flask_cors import cross_origin, CORS
|
||||
from flask_debugtoolbar import DebugToolbarExtension
|
||||
from flask_login import current_user
|
||||
from sentry_sdk.integrations.aiohttp import AioHttpIntegration
|
||||
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
@ -75,12 +74,7 @@ from app.oauth.base import oauth_bp
|
|||
if SENTRY_DSN:
|
||||
LOG.d("enable sentry")
|
||||
sentry_sdk.init(
|
||||
dsn=SENTRY_DSN,
|
||||
integrations=[
|
||||
FlaskIntegration(),
|
||||
SqlalchemyIntegration(),
|
||||
AioHttpIntegration(),
|
||||
],
|
||||
dsn=SENTRY_DSN, integrations=[FlaskIntegration(), SqlalchemyIntegration(),],
|
||||
)
|
||||
|
||||
# the app is served behin nginx which uses http and not https
|
||||
|
|
Loading…
Reference in New Issue