aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-21 13:33:35 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-21 22:22:32 -0800
commit972f00e0e980da308fe80552145622ee69105b3b (patch)
treeb1161039a2e3e724f901efc16c5c03cb9e266093 /python
parent90514012f90afa7de80bd6d5ee18f68a9b9e89c8 (diff)
downloadfatcat-972f00e0e980da308fe80552145622ee69105b3b.tar.gz
fatcat-972f00e0e980da308fe80552145622ee69105b3b.zip
enable sentry exceptions for fatcat-web
Diffstat (limited to 'python')
-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.