-
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.
Move sentry dns to environment variable
- Loading branch information
1 parent
e3b69af
commit 4c05f11
Showing
1 changed file
with
4 additions
and
2 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 |
---|---|---|
|
@@ -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 | ||
|