-
Notifications
You must be signed in to change notification settings - Fork 6
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 #160 from usegalaxy-au/dev
Add Sentry logging
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -20,3 +20,4 @@ lxml | |
Pillow | ||
requests==2.* | ||
requests_mock==1.* | ||
sentry-sdk==2.* |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
"""Settings for production.""" | ||
|
||
import os | ||
import sentry_sdk | ||
|
||
from .base import * | ||
from . import validate | ||
|
@@ -60,4 +61,13 @@ | |
LOGGING = config.configure_logging(LOG_ROOT) | ||
|
||
# Use manifest to manage static file versions for cache busting: | ||
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' | ||
STATICFILES_STORAGE = ( | ||
'django.contrib.staticfiles.storage' | ||
'.ManifestStaticFilesStorage') | ||
|
||
sentry_sdk.init( | ||
dsn="https://[email protected]/20", | ||
# Set traces_sample_rate to 1.0 to capture 100% | ||
# of transactions for tracing. | ||
traces_sample_rate=1.0, | ||
) |