diff --git a/config.py b/config.py index 58b679a..d731604 100644 --- a/config.py +++ b/config.py @@ -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", "") -} \ No newline at end of file +SENTRY_DSN = environ.get("CONDITIONAL_SENTRY_DSN", "") \ No newline at end of file diff --git a/proxstar/__init__.py b/proxstar/__init__.py index 4ea245f..150e6be 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -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()]