Skip to content

Commit

Permalink
Add sentry as a requirement and setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Jun 20, 2024
1 parent eb5a800 commit 592dceb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ocd_backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ python-magic==0.4.15
pyyaml==4.2b1
rdflib==4.2.2
requests==2.22.0
sentry-sdk[celery]
sqlalchemy==1.3.13
sqlalchemy-utils==0.36.1
urllib3==1.25.8
Expand Down
3 changes: 3 additions & 0 deletions ocd_backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ def process_log_record(self, log_record):
POSTGRES_USERNAME = os.getenv('POSTGRES_USERNAME', 'ori_postgres_user')
POSTGRES_PASSWORD = os.getenv('POSTGRES_PASSWORD', 'ori_postgres_password')

# Sentry DSN
SENTRY_DSN = os.getenv('SENTRY_DSN')

# Allow any settings to be defined in local_settings.py which should be
# ignored in your version control system allowing for settings to be
# defined per machine.
Expand Down

0 comments on commit 592dceb

Please sign in to comment.