Use server side PII rules
This commit is contained in:
parent
392900956c
commit
9e572534aa
2 changed files with 1 additions and 3 deletions
|
|
@ -10,7 +10,6 @@ load_dotenv()
|
|||
try:
|
||||
from sentry_sdk.integrations.celery import CeleryIntegration
|
||||
from sentry_sdk.integrations.django import DjangoIntegration
|
||||
from .sentry import sentry_filter
|
||||
except ImportError:
|
||||
CeleryIntegration = None
|
||||
DjangoIntegration = None
|
||||
|
|
@ -261,9 +260,8 @@ ACCOUNT_ACTIVATION_DAYS = 7
|
|||
# Sentry
|
||||
SENTRY_CONFIG = {
|
||||
"dsn": os.environ.get("SENTRY_DSN"),
|
||||
"send_default_pii": True,
|
||||
"send_default_pii": False,
|
||||
"environment": ENVIRONMENT,
|
||||
"before_send": sentry_filter,
|
||||
"integrations": [DjangoIntegration(), CeleryIntegration()]
|
||||
if DjangoIntegration and CeleryIntegration
|
||||
else [],
|
||||
|
|
|
|||
0
src/newsreader/conf/sentry.py
Normal file
0
src/newsreader/conf/sentry.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue