def init(config_file): """ init """ Settings.init(config_file) init_logging() dsn = Settings.get("sentry", "dsn") if dsn: import sentry_sdk from sentry_sdk.integrations.redis import RedisIntegration sentry_sdk.init( dsn, environment=Settings.get("sentry", "environment"), integrations=[RedisIntegration()], ) if Settings.monitoring(): init_monitor_db()
def test_parse_config_file(): Settings.init("synch.yaml")