(self, config: dict)
| 61 | |
| 62 | class Sentry: |
| 63 | def __init__(self, config: dict) -> None: |
| 64 | self.config = config |
| 65 | self.enabled = bool(config.get("enabled")) |
| 66 | self.logger = logging.getLogger("sentry") |
| 67 | self.logger.info(f"Setting up sentry (enabled={self.enabled})") |
| 68 | |
| 69 | def init(self): |
| 70 | sentry_sdk.init( |