proxstar/rqsettings.py

17 lines
372 B
Python
Raw Permalink Normal View History

2020-10-11 17:26:45 +00:00
import os
import sentry_sdk
from sentry_sdk.integrations.rq import RqIntegration
2020-12-21 19:17:48 +00:00
from sentry_sdk.integrations.redis import RedisIntegration
2020-10-11 17:26:45 +00:00
2020-12-21 19:54:13 +00:00
if os.path.exists('config_local.py'):
import config_local as config
else:
import config
2020-10-11 17:26:45 +00:00
sentry_sdk.init(
config.SENTRY_DSN,
2020-12-21 19:17:48 +00:00
integrations=[RqIntegration(), RedisIntegration()],
environment=config.SENTRY_ENV,
2020-10-11 17:26:45 +00:00
)