Make sure local dev still works with sentry

This commit is contained in:
Charlotte Van Petegem 2022-10-27 19:47:12 +02:00
parent 1dcd723bd4
commit 29afc8db7a
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 6 additions and 5 deletions

View file

@ -174,6 +174,7 @@ def create_app():
# For usage when you directly call the script with python # For usage when you directly call the script with python
if __name__ == "__main__": if __name__ == "__main__":
if Configuration.SENTRY_DSN:
sentry_sdk.init( sentry_sdk.init(
dsn=Configuration.SENTRY_DSN, dsn=Configuration.SENTRY_DSN,
integrations=[FlaskIntegration()] integrations=[FlaskIntegration()]

View file

@ -12,6 +12,6 @@ class Configuration:
SECRET_KEY = "<change>" SECRET_KEY = "<change>"
SLACK_WEBHOOK = None SLACK_WEBHOOK = None
LOGFILE = "haldis.log" LOGFILE = "haldis.log"
SENTRY_DSN = "<change>" SENTRY_DSN = None
ZEUS_KEY = "tomtest" ZEUS_KEY = "tomtest"
ZEUS_SECRET = "blargh" ZEUS_SECRET = "blargh"