This commit is contained in:
parent
2e8bc421c6
commit
d6b8c528de
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import sentry_sdk
|
||||
from sentry_sdk.integrations.flask import FlaskIntegration
|
||||
from flask import Flask
|
||||
import os
|
||||
from db import redis_client
|
||||
@ -14,7 +15,17 @@ __copyright__ = "Copyright 2020, GoldenPogácsa Team"
|
||||
__module_name__ = "app"
|
||||
__version__text__ = "1"
|
||||
|
||||
sentry_sdk.init("https://0a106e104e114bc9a3fa47f9cb0db2f4@sentry.kmlabz.com/10")
|
||||
# Setup sentry
|
||||
SENTRY_DSN = os.environ.get("SENTRY_DSN")
|
||||
if SENTRY_DSN:
|
||||
sentry_sdk.init(
|
||||
dsn=SENTRY_DSN,
|
||||
integrations=[FlaskIntegration()],
|
||||
send_default_pii=True,
|
||||
release=os.environ.get('RELEASE_ID', 'test'),
|
||||
environment=os.environ.get('RELEASEMODE', 'dev')
|
||||
)
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config['REDIS_URL'] = os.environ['REDIS_URL']
|
||||
|
Reference in New Issue
Block a user