From 4d4a5f3d41e4d384b08ec3b8d3ff6f62277942ef Mon Sep 17 00:00:00 2001 From: JabLuszko Date: Wed, 7 Feb 2024 14:20:55 +0100 Subject: [PATCH] Log exception for webhook worker .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