Merge pull request #206 from ZeusWPI/sentry-local-dev

Make sure local dev still works with sentry
This commit is contained in:
Maxime 2022-10-27 19:49:57 +02:00 committed by GitHub
commit b14671413c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

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

View file

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