mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
15 lines
292 B
Python
15 lines
292 B
Python
import os
|
|
|
|
import sentry_sdk
|
|
from sentry_sdk.integrations.rq import RqIntegration
|
|
|
|
if os.path.exists('config_local.py'):
|
|
import config_local as config
|
|
else:
|
|
import config
|
|
|
|
sentry_sdk.init(
|
|
config.SENTRY_DSN,
|
|
integrations=[RqIntegration()],
|
|
environment=config.SENTRY_ENV
|
|
)
|