Skip to content

Commit d31b72f

Browse files
lukegbfelixoi
andauthored
Apply suggestions from code review
Co-Authored-By: felixoi <felixoi@users.noreply.github.com>
1 parent f69761e commit d31b72f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • spongeauth/spongeauth/settings

spongeauth/spongeauth/settings/prod.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sentry_sdk
22
from sentry_sdk.integrations.django import DjangoIntegration
33

4-
from spongeauth.spongeauth.settings.utils import fetch_git_sha
4+
from .utils import fetch_git_sha
55
from .base import *
66

77
GIT_REPO_ROOT = os.path.dirname(BASE_DIR)
@@ -60,9 +60,10 @@
6060
d[key.lower()] = v
6161

6262
sentry_sdk.init(
63-
dsn=os.environ['RAVEN_DSN'],
63+
dsn=os.environ.get('RAVEN_DSN'),
6464
integrations=[DjangoIntegration()],
65-
release=fetch_git_sha(GIT_REPO_ROOT)
65+
release=fetch_git_sha(GIT_REPO_ROOT),
66+
send_default_pii=True,
6667
)
6768

6869
DATABASES = {

0 commit comments

Comments
 (0)