From cba1722129f6909ad013beab283eaf04ee53da34 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 14 Sep 2020 12:58:16 -0700 Subject: [PATCH] webhooks: Do log non-"unsupported" errors to main logfiles. This undoes a small part of b8a2e6b5f8; namely, logs to `zulip.zerver.webhooks`, which are all exceptions from webhooks except UnsupportedWebhookEventType, should still be logged to the main error loggers. This maintains the property that exceptions generating 500's are all present in `errors.log`. --- zproject/computed_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py index 76dc85af14..0f225b2409 100644 --- a/zproject/computed_settings.py +++ b/zproject/computed_settings.py @@ -952,7 +952,7 @@ LOGGING: Dict[str, Any] = { }, 'zulip.zerver.webhooks': { 'level': 'DEBUG', - 'handlers': ['webhook_file'], + 'handlers': ['file', 'errors_file', 'webhook_file'], 'propagate': False, }, 'zulip.zerver.webhooks.unsupported': {