aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/__init__.py6
-rw-r--r--python/fatcat_web/web_config.py9
2 files changed, 5 insertions, 10 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index 9877d98e..0725c2e2 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -45,7 +45,11 @@ login_manager.login_view = "/auth/login"
oauth = OAuth(app)
# Grabs sentry config from SENTRY_DSN environment variable
-sentry_sdk.init(integrations=[FlaskIntegration()])
+sentry_sdk.init(
+ integrations=[FlaskIntegration()],
+ release=Config.GIT_RELEASE,
+ environment=Config.FATCAT_DOMAIN,
+)
conf = fatcat_openapi_client.Configuration()
conf.host = Config.FATCAT_API_HOST
diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py
index fb3b55ab..904189d6 100644
--- a/python/fatcat_web/web_config.py
+++ b/python/fatcat_web/web_config.py
@@ -157,12 +157,3 @@ class Config(object):
except Exception as e:
print("WARNING: couldn't set sentry git release automatically: " + str(e))
GIT_RELEASE = None
-
- SENTRY_CONFIG = {
- #'include_paths': ['fatcat_web', 'fatcat_openapi_client', 'fatcat_tools'],
- "enable-threads": True, # for uWSGI
- "release": GIT_RELEASE,
- "tags": {
- "fatcat_domain": FATCAT_DOMAIN,
- },
- }