def check_sentry_config(app_configs, **kwargs):
issues = []
if 'sentry' not in settings.LOGGING['handlers']:
return issues
if 'sentry' not in settings.LOGGING['loggers']['']['handlers']:
issues.append(
Warning(
"Sentry logging handler is present but unused",
hint="Ensure that sentry handler is part of LOGGING['loggers']['']['handlers']",
id='tg_utils.W011',
)
)
return issues
评论列表
文章目录