Skip to content

Commit

Permalink
Migrate to init_sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolas committed Oct 8, 2024
1 parent 89769f2 commit b072c1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
9 changes: 2 additions & 7 deletions smart_sa/settings_production.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from django.conf import settings
from smart_sa.settings_shared import * # noqa: F403
from ctlsettings.production import common
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from ctlsettings.production import common, init_sentry

locals().update(
common(
Expand Down Expand Up @@ -38,7 +36,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 smart_sa/settings_staging.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from django.conf import settings
from smart_sa.settings_shared import * # noqa: F403
from ctlsettings.staging import common
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from ctlsettings.staging import common, init_sentry

locals().update(
common(
Expand Down Expand Up @@ -30,8 +28,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

0 comments on commit b072c1c

Please sign in to comment.