Use robust plugin calling in runperiodic

This commit is contained in:
Raphael Michel
2019-07-25 09:20:34 +02:00
parent 3091139aab
commit 6df1960f79
2 changed files with 11 additions and 1 deletions

View File

@@ -601,12 +601,14 @@ LOGGING = {
},
}
SENTRY_ENABLED = False
if config.has_option('sentry', 'dsn'):
import sentry_sdk
from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.logging import LoggingIntegration, ignore_logger
from .sentry import PretixSentryIntegration, setup_custom_filters
SENTRY_ENABLED = True
sentry_sdk.init(
dsn=config.get('sentry', 'dsn'),
integrations=[