aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/web_config.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/python/web_config.py b/python/web_config.py
index 8449aff5..9df9c205 100644
--- a/python/web_config.py
+++ b/python/web_config.py
@@ -24,14 +24,18 @@ class Config(object):
ELASTICSEARCH_INDEX = os.environ.get("ELASTICSEARCH_INDEX", default="fatcat")
try:
- git_release = raven.fetch_git_sha(os.path.dirname(os.pardir))
+ GIT_RELEASE = raven.fetch_git_sha('..')
except Exception as e:
print("WARNING: couldn't set sentry git release automatically: " + str(e))
- git_release = None
+ GIT_RELEASE = None
+
SENTRY_CONFIG = {
#'include_paths': ['fatcat_web', 'fatcat_client', 'fatcat_tools'],
- 'release': git_release,
- 'fatcat_domain': FATCAT_DOMAIN,
+ 'enable-threads': True, # for uWSGI
+ 'release': GIT_RELEASE,
+ 'tags': {
+ 'fatcat_domain': FATCAT_DOMAIN,
+ },
}
# "Event more verbose" debug options. SECRET_KEY is bogus.