From 77643a4fe144cb908a372a2ceb99f36634457ca5 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 20 Nov 2022 12:24:03 -0700 Subject: Add more error handling --- takahe/settings/base.py | 2 ++ takahe/settings/production.py | 1 + 2 files changed, 3 insertions(+) (limited to 'takahe/settings') diff --git a/takahe/settings/base.py b/takahe/settings/base.py index 719e03b..0ab3035 100644 --- a/takahe/settings/base.py +++ b/takahe/settings/base.py @@ -116,3 +116,5 @@ ALLOWED_HOSTS = ["*"] AUTO_ADMIN_EMAIL: Optional[str] = None STATOR_TOKEN: Optional[str] = None + +SENTRY_ENABLED = False diff --git a/takahe/settings/production.py b/takahe/settings/production.py index 4120217..b23093f 100644 --- a/takahe/settings/production.py +++ b/takahe/settings/production.py @@ -91,3 +91,4 @@ if "SENTRY_DSN" in os.environ: traces_sample_rate=1.0, send_default_pii=True, ) + SENTRY_ENABLED = True -- cgit v1.2.3