Skip to content

Commit

Permalink
Log exception for webhook worker
Browse files Browse the repository at this point in the history
.warning sometimes shows empty message rather than actual error
  • Loading branch information
JabLuszko authored Feb 7, 2024
1 parent 3df9a62 commit 4d4a5f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mapadroid/webhook/webhookworker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d4a5f3

Please sign in to comment.