Configure sentry environments

This commit is contained in:
Max Meinhold 2020-10-11 13:29:55 -04:00
parent b95e446857
commit d6eaeaf33e
No known key found for this signature in database
GPG key ID: 00B8B1017EEC103F
3 changed files with 8 additions and 4 deletions

View file

@ -62,5 +62,7 @@ WEBSOCKIFY_TARGET_FILE = environ.get('PROXSTAR_WEBSOCKIFY_TARGET_FILE',
'/opt/app-root/src/targets')
# SENTRY
# Do not set the DSN for local development
SENTRY_DSN = environ.get("CONDITIONAL_SENTRY_DSN", "")
# If you set the sentry dsn locally, make sure you use the local-dev or some
# other local environment, so we can separate local errors from production
SENTRY_DSN = environ.get("PROXSTAR_SENTRY_DSN", "")
SENTRY_ENV = environ.get("PROXSTAR_SENTRY_ENV", "local-dev")