From 972f00e0e980da308fe80552145622ee69105b3b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 21 Nov 2018 13:33:35 -0800 Subject: enable sentry exceptions for fatcat-web --- python/web_config.py | 12 ++++++++---- 1 file 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. -- cgit v1.2.3