* SENTRY_DSN address in env

This commit is contained in:
Phil Zhitnikov 2024-05-24 02:19:27 +04:00
parent e5c104bc11
commit 37983bbee7
2 changed files with 6 additions and 3 deletions

View File

@ -18,4 +18,7 @@ POIZON_TOKEN=""
CURRENCY_GETGEOIP_API_KEY=""
# Celery & Flower
FLOWER_BASIC_AUTH="login:pwd"
FLOWER_BASIC_AUTH="login:pwd"
# Logging
SENTRY_DSN=""

View File

@ -239,8 +239,8 @@ REFERRAL_CODE_LENGTH = 10
COMMISSION_OVER_150K = 1.1
# Logging
SENTRY_DSN = "https://96106e3f938badc86ecb2e502716e496@o4506163299418112.ingest.sentry.io/4506163300663296"
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%