Skip to content

Commit

Permalink
fix: show response body in error (#5829)
Browse files Browse the repository at this point in the history
  • Loading branch information
exu authored Sep 6, 2024
1 parent 27ac60e commit cf9699a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/event/kind/webhook/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (l *WebhookListener) Notify(event testkube.Event) (result testkube.EventRes

if resp.StatusCode >= 400 {
err := fmt.Errorf("webhook response with bad status code: %d", resp.StatusCode)
log.Errorw("webhook send error", "error", err, "status", resp.StatusCode)
log.Errorw("webhook send error", "error", err, "status", resp.StatusCode, "response", responseStr)
result = testkube.NewFailedEventResult(event.Id, err).WithResult(responseStr)
return
}
Expand Down

0 comments on commit cf9699a

Please sign in to comment.