-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from duncanpeacock/issue-216-sentry-dns
Issue 216 sentry dns
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
from sentry_sdk.integrations.redis import RedisIntegration | ||
|
||
# SECURITY WARNING: don't run with debug turned on in production! | ||
DEBUG = True | ||
DEBUG = False | ||
|
||
# These flags are used in the upload_tset form as follows. | ||
# Proposal Supported | Proposal Required | Proposal / View fields | ||
|
@@ -32,10 +32,12 @@ | |
# Should always be True on production. | ||
AUTHENTICATE_UPLOAD = True | ||
|
||
if DEBUG == False: | ||
# This is set on AWX when the fragalysis-stack is rebuilt. | ||
SENTRY_DNS = os.environ.get("FRAGALYSIS_BACKEND_SENTRY_DNS") | ||
if DEBUG is False and SENTRY_DNS: | ||
# By default only call sentry in staging/production | ||
sentry_sdk.init( | ||
dsn="https://[email protected]/1298290", | ||
dsn=SENTRY_DNS, | ||
integrations=[DjangoIntegration(), CeleryIntegration(), RedisIntegration()], | ||
|
||
# If you wish to associate users to errors (assuming you are using | ||
|