From aaf16a3190ac77f30b6c3651922555107c94f40c Mon Sep 17 00:00:00 2001 From: JabLuszko Date: Fri, 20 Sep 2024 11:34:19 +0200 Subject: [PATCH] Log exception for webhook worker (#1377) .warning sometimes shows empty message rather than actual error --- mapadroid/webhook/webhookworker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mapadroid/webhook/webhookworker.py b/mapadroid/webhook/webhookworker.py index 53c2b91da..25490d14f 100644 --- a/mapadroid/webhook/webhookworker.py +++ b/mapadroid/webhook/webhookworker.py @@ -120,6 +120,7 @@ async def __send_webhook(self, payloads): whcount_text, await mad_json_dumps(self.__payload_type_count(payload_chunk))) except Exception as e: logger.warning("Exception occured while sending webhook: {}", e) + logger.exception(e) current_pl_num += 1 current_wh_num += 1