Skip to content

Commit

Permalink
[INTPROD-8885] Log the error before retrying (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsl authored Oct 17, 2023
1 parent fa06851 commit be264c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion omnibot/routes/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
)
Expand Down

0 comments on commit be264c9

Please sign in to comment.