Remove raven references from python code

This commit is contained in:
Galen Guyer 2019-11-03 21:49:05 -05:00
parent 3a4dbc7c31
commit a017962f40
No known key found for this signature in database
GPG key ID: 6E39D00D77389D4E
2 changed files with 1 additions and 6 deletions

View file

@ -63,7 +63,4 @@ WEBSOCKIFY_TARGET_FILE = environ.get('PROXSTAR_WEBSOCKIFY_TARGET_FILE',
# SENTRY
# Do not set the DSN for local development
SENTRY_DSN = environ.get("CONDITIONAL_SENTRY_DSN", "")
SENTRY_CONFIG = {
'dsn': environ.get("CONDITIONAL_SENTRY_DSN", "")
}
SENTRY_DSN = environ.get("CONDITIONAL_SENTRY_DSN", "")

View file

@ -13,7 +13,6 @@ from rq_scheduler import Scheduler
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from flask import Flask, render_template, request, redirect, session, abort, url_for
from raven.contrib.flask import Sentry
import sentry_sdk
from sentry_sdk.integrations.flask import FlaskIntegration
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
@ -44,7 +43,6 @@ app.config.from_pyfile(config)
app.config['GIT_REVISION'] = subprocess.check_output(
['git', 'rev-parse', '--short', 'HEAD']).decode('utf-8').rstrip()
# Sentry setup
sentry = Sentry(app)
sentry_sdk.init(
dsn=app.config['SENTRY_DSN'],
integrations=[FlaskIntegration(), SqlalchemyIntegration()]