mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-14 14:01:51 +00:00
Remove raven references from python code
This commit is contained in:
parent
3a4dbc7c31
commit
a017962f40
2 changed files with 1 additions and 6 deletions
|
@ -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", "")
|
|
@ -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()]
|
||||
|
|
Loading…
Reference in a new issue