mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
webhooks: Adjust the name of the unsupported logger.
`zulip.zerver.lib.webhooks.common` was very opaque previously, especially since none of the logging was actually done from that module. Adjust to a more explicit logger name.
This commit is contained in:
committed by
Tim Abbott
parent
482c964dd3
commit
ea8823742b
@@ -52,7 +52,7 @@ if settings.ZILENCER_ENABLED:
|
||||
webhook_logger = logging.getLogger("zulip.zerver.webhooks")
|
||||
log_to_file(webhook_logger, settings.API_KEY_ONLY_WEBHOOK_LOG_PATH)
|
||||
|
||||
webhook_unsupported_events_logger = logging.getLogger("zulip.zerver.lib.webhooks.common")
|
||||
webhook_unsupported_events_logger = logging.getLogger("zulip.zerver.webhooks.unsupported")
|
||||
log_to_file(webhook_unsupported_events_logger,
|
||||
settings.WEBHOOK_UNSUPPORTED_EVENTS_LOG_PATH)
|
||||
|
||||
|
||||
@@ -934,12 +934,12 @@ LOGGING: Dict[str, Any] = {
|
||||
'handlers': ['zulip_admins'],
|
||||
'propagate': False,
|
||||
},
|
||||
'zulip.zerver.lib.webhooks.common': {
|
||||
'zulip.zerver.webhooks': {
|
||||
'level': 'DEBUG',
|
||||
'handlers': ['file', 'errors_file'],
|
||||
'propagate': False,
|
||||
},
|
||||
'zulip.zerver.webhooks': {
|
||||
'zulip.zerver.webhooks.unsupported': {
|
||||
'level': 'DEBUG',
|
||||
'handlers': ['file', 'errors_file'],
|
||||
'propagate': False,
|
||||
|
||||
Reference in New Issue
Block a user