Skip to content

Commit

Permalink
Merge pull request #2048 from ccnmtl/init-sentry
Browse files Browse the repository at this point in the history
Migrate to init_sentry from ctlsettings
  • Loading branch information
nikolas authored Oct 8, 2024
2 parents 32f89e6 + 881bc93 commit 6c8cc8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
7 changes: 2 additions & 5 deletions carr/settings_production.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from carr.settings_shared import * # noqa F403
from ctlsettings.production import common
from ctlsettings.production import common, init_sentry
from django.conf import settings
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

locals().update(
common(
Expand All @@ -26,5 +24,4 @@
pass

if hasattr(settings, 'SENTRY_DSN'):
sentry_sdk.init(dsn=SENTRY_DSN, # noqa: F405
integrations=[DjangoIntegration()])
init_sentry(SENTRY_DSN) # noqa F405
10 changes: 2 additions & 8 deletions carr/settings_staging.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from carr.settings_shared import * # noqa F403
from ctlsettings.staging import common
from ctlsettings.staging import common, init_sentry
from django.conf import settings
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

locals().update(
common(
Expand All @@ -26,8 +24,4 @@
pass

if hasattr(settings, 'SENTRY_DSN'):
sentry_sdk.init(
dsn=SENTRY_DSN, # noqa: F405
integrations=[DjangoIntegration()],
debug=True,
)
init_sentry(SENTRY_DSN) # noqa F405
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pylibmc==1.6.3;sys_platform == "linux" and python_version<"3.9"
requirements/src/pylibmc-1.7.0.dev0-cp312-cp312-linux_x86_64.whl;sys_platform == "linux" and python_version>="3.12"
django-smtp-ssl==1.0

ctlsettings==0.3.3
ctlsettings==0.3.4
django-bootstrap3==24.3

pbr==6.1.0
Expand Down

0 comments on commit 6c8cc8e

Please sign in to comment.