File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3131# Sentry setup
3232sentry_sdk .init (
3333 dsn = app .config ['SENTRY_DSN' ],
34- integrations = [FlaskIntegration (), SqlalchemyIntegration ()]
34+ integrations = [FlaskIntegration (), SqlalchemyIntegration ()],
35+ environment = app .config ['SENTRY_ENV' ],
3536)
3637
3738ldap = CSHLDAP (app .config ['LDAP_BIND_DN' ],
Original file line number Diff line number Diff line change 2525LDAP_BIND_PW = env .get ("CONDITIONAL_LDAP_BIND_PW" , "" )
2626
2727# Sentry config
28- # Do not set the DSN for local development
28+ # Not required for local development, but if you set it, make sure the
29+ # SENTRY_ENV is 'local-development'
2930SENTRY_DSN = env .get ("CONDITIONAL_SENTRY_DSN" , "" )
3031SENTRY_CONFIG = {
3132 'dsn' : env .get ("CONDITIONAL_SENTRY_LEGACY_DSN" , "" ),
3233 'release' : VERSION ,
3334}
35+ SENTRY_ENV = env .get ("CONDITIONAL_SENTRY_ENV" , "local-development" )
3436
3537# OIDC Config
3638OIDC_ISSUER = env .get ("CONDITIONAL_OIDC_ISSUER" , "https://sso.csh.rit.edu/auth/realms/csh" )
You can’t perform that action at this time.
0 commit comments