From be264c95fe9600cf06898b4ac95e19f664b68d61 Mon Sep 17 00:00:00 2001 From: colinsl <44621864+colinsl@users.noreply.github.com> Date: Tue, 17 Oct 2023 10:29:40 -0700 Subject: [PATCH] [INTPROD-8885] Log the error before retrying (#96) --- omnibot/routes/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/omnibot/routes/api.py b/omnibot/routes/api.py index 45bf523..130fd7e 100644 --- a/omnibot/routes/api.py +++ b/omnibot/routes/api.py @@ -721,7 +721,10 @@ def _perform_action(bot, data): logger.warning( "action failed in post_slack, attempting as user.", extra=merge_logging_context( - {"action": action}, + { + "action": action, + "error": ret.get("error"), + }, bot.logging_context, ), )