From f14f9d1179acaf73eb56cb6f3d728d6c23b02754 Mon Sep 17 00:00:00 2001 From: phzhik Date: Fri, 24 May 2024 02:19:27 +0400 Subject: [PATCH] * SENTRY_DSN address in env --- .env.template | 5 ++++- poizonstore/settings.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env.template b/.env.template index 1e77541..d95a0a4 100644 --- a/.env.template +++ b/.env.template @@ -18,4 +18,7 @@ POIZON_TOKEN="" CURRENCY_GETGEOIP_API_KEY="" # Celery & Flower -FLOWER_BASIC_AUTH="login:pwd" \ No newline at end of file +FLOWER_BASIC_AUTH="login:pwd" + +# Logging +SENTRY_DSN="" \ No newline at end of file diff --git a/poizonstore/settings.py b/poizonstore/settings.py index 23c82f6..a401e43 100644 --- a/poizonstore/settings.py +++ b/poizonstore/settings.py @@ -239,8 +239,8 @@ REFERRAL_CODE_LENGTH = 10 COMMISSION_OVER_150K = 1.1 # Logging -SENTRY_DSN = "***REMOVED***" -if not DEBUG: +SENTRY_DSN = get_secret("SENTRY_DSN") +if SENTRY_DSN: sentry_sdk.init( dsn=SENTRY_DSN, # Set traces_sample_rate to 1.0 to capture 100%