Skip to content

Commit

Permalink
Merge pull request #1931 from ccnmtl/init-sentry
Browse files Browse the repository at this point in the history
Migrate to init_sentry
  • Loading branch information
ndittren authored Oct 8, 2024
2 parents 03fb053 + 4831dc2 commit ac3789d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion mvsim/settings_production.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.conf import settings
from mvsim.settings_shared import * # noqa: F403
from ctlsettings.production import common
from ctlsettings.production import common, init_sentry
import os

project = 'mvsim'
Expand All @@ -21,3 +22,6 @@
pass

MVSIM_GRAPH_OUTPUT_DIRECTORY = "/var/www/mvsim/uploads/graphs"

if hasattr(settings, 'SENTRY_DSN'):
init_sentry(SENTRY_DSN) # noqa F405
6 changes: 5 additions & 1 deletion mvsim/settings_staging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from django.conf import settings
from mvsim.settings_shared import * # noqa: F403
from ctlsettings.staging import common
from ctlsettings.staging import common, init_sentry
import os

project = 'mvsim'
Expand All @@ -21,3 +22,6 @@
pass

MVSIM_GRAPH_OUTPUT_DIRECTORY = "/var/www/mvsim/uploads/graphs"

if hasattr(settings, 'SENTRY_DSN'):
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 @@ -89,7 +89,7 @@ django-statsd-mozilla==0.4.0
django-smoketest==1.2.1
raven==6.10.0
certifi==2024.8.30 # sentry-sdk
sentry-sdk==2.15.0
sentry-sdk[django]==2.16.0
django-debug-toolbar==4.4.2

django-impersonate==1.9.1
Expand Down

0 comments on commit ac3789d

Please sign in to comment.