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:
|
try:
|
||||||
from sentry_sdk.integrations.celery import CeleryIntegration
|
from sentry_sdk.integrations.celery import CeleryIntegration
|
||||||
from sentry_sdk.integrations.django import DjangoIntegration
|
from sentry_sdk.integrations.django import DjangoIntegration
|
||||||
from .sentry import sentry_filter
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
CeleryIntegration = None
|
CeleryIntegration = None
|
||||||
DjangoIntegration = None
|
DjangoIntegration = None
|
||||||
|
|
@ -261,9 +260,8 @@ ACCOUNT_ACTIVATION_DAYS = 7
|
||||||
# Sentry
|
# Sentry
|
||||||
SENTRY_CONFIG = {
|
SENTRY_CONFIG = {
|
||||||
"dsn": os.environ.get("SENTRY_DSN"),
|
"dsn": os.environ.get("SENTRY_DSN"),
|
||||||
"send_default_pii": True,
|
"send_default_pii": False,
|
||||||
"environment": ENVIRONMENT,
|
"environment": ENVIRONMENT,
|
||||||
"before_send": sentry_filter,
|
|
||||||
"integrations": [DjangoIntegration(), CeleryIntegration()]
|
"integrations": [DjangoIntegration(), CeleryIntegration()]
|
||||||
if DjangoIntegration and CeleryIntegration
|
if DjangoIntegration and CeleryIntegration
|
||||||
else [],
|
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