mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +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
|
# SENTRY
|
||||||
# Do not set the DSN for local development
|
# Do not set the DSN for local development
|
||||||
SENTRY_DSN = environ.get("CONDITIONAL_SENTRY_DSN", "")
|
SENTRY_DSN = environ.get("CONDITIONAL_SENTRY_DSN", "")
|
||||||
SENTRY_CONFIG = {
|
|
||||||
'dsn': environ.get("CONDITIONAL_SENTRY_DSN", "")
|
|
||||||
}
|
|
|
@ -13,7 +13,6 @@ from rq_scheduler import Scheduler
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from sqlalchemy.orm import sessionmaker
|
from sqlalchemy.orm import sessionmaker
|
||||||
from flask import Flask, render_template, request, redirect, session, abort, url_for
|
from flask import Flask, render_template, request, redirect, session, abort, url_for
|
||||||
from raven.contrib.flask import Sentry
|
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
from sentry_sdk.integrations.flask import FlaskIntegration
|
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||||
|
@ -44,7 +43,6 @@ app.config.from_pyfile(config)
|
||||||
app.config['GIT_REVISION'] = subprocess.check_output(
|
app.config['GIT_REVISION'] = subprocess.check_output(
|
||||||
['git', 'rev-parse', '--short', 'HEAD']).decode('utf-8').rstrip()
|
['git', 'rev-parse', '--short', 'HEAD']).decode('utf-8').rstrip()
|
||||||
# Sentry setup
|
# Sentry setup
|
||||||
sentry = Sentry(app)
|
|
||||||
sentry_sdk.init(
|
sentry_sdk.init(
|
||||||
dsn=app.config['SENTRY_DSN'],
|
dsn=app.config['SENTRY_DSN'],
|
||||||
integrations=[FlaskIntegration(), SqlalchemyIntegration()]
|
integrations=[FlaskIntegration(), SqlalchemyIntegration()]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue