Skip to content

Commit

Permalink
removing sentry as default, it was never used
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Dec 28, 2020
1 parent b2d7c7e commit 9555859
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
13 changes: 0 additions & 13 deletions dmp_project/settings.py
Expand Up @@ -156,19 +156,6 @@
PUBLISHING_AGREEMENT_PUBLISHER_SR = Decimal(
os.getenv('PUBLISHER_AGREEMENT_PR', '1.0'))

# Error reporting aggregator, see https://sentry.io
SENTRY_DSN = os.getenv('SENTRY_DSN')
if SENTRY_DSN:
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

sentry_sdk.init(
dsn=SENTRY_DSN,
integrations=[DjangoIntegration()],
send_default_pii=True
)
sentry_sdk.capture_message('Starting.')

CSRF_COOKIE_SECURE = not DEBUG
SESSION_COOKIE_SECURE = not DEBUG
SECURE_HSTS_SECONDS = 0 if DEBUG else 300
Expand Down
1 change: 0 additions & 1 deletion requirements-docs.txt
@@ -1,7 +1,6 @@
Django>=3.1.4,<3.2
dj_database_url
psycopg2-binary
sentry-sdk
# Sphinx
# sphinx_rtd_theme
sphinxcontrib-napoleon
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
@@ -1,6 +1,5 @@
Django>=3.1.4,<3.2
dj_database_url
psycopg2-binary
sentry-sdk
waitress
whitenoise

0 comments on commit 9555859

Please sign in to comment.