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

@ -47,7 +47,8 @@ app.config['GIT_REVISION'] = subprocess.check_output(
# Sentry setup
sentry_sdk.init(
dsn=app.config['SENTRY_DSN'],
integrations=[FlaskIntegration(), RqIntegration(), SqlalchemyIntegration()]
integrations=[FlaskIntegration(), RqIntegration(), SqlalchemyIntegration()],
environment=app.config['SENTRY_ENV']
)
with open('proxmox_ssh_key', 'w') as ssh_key_file: