Skip to content

Commit

Permalink
Log error details when failing to send webhook request in runWebhookH…
Browse files Browse the repository at this point in the history
…andler function
eduardolat committed Sep 2, 2024
1 parent 0ac245b commit dd4892c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/view/web/dashboard/webhooks/run_webhook.go
Original file line number Diff line number Diff line change
@@ -28,7 +28,13 @@ func (h *handlers) runWebhookHandler(c echo.Context) error {
})
return
}
_ = h.servs.WebhooksService.SendWebhookRequest(ctx, webhook)
err = h.servs.WebhooksService.SendWebhookRequest(ctx, webhook)
if err != nil {
logger.Error("error sending webhook request", logger.KV{
"webhook_id": webhook.ID,
"error": err.Error(),
})
}
}()

return htmx.RespondToastSuccess(c, "Running webhook, check the webhook executions for more details")

0 comments on commit dd4892c

Please sign in to comment.