Skip to content

Commit

Permalink
avoid to print whole event in the log (#83)
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <[email protected]>
  • Loading branch information
skeeey authored Oct 8, 2024
1 parent 225dcf1 commit 2fd7e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudevents/generic/baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (c *baseClient) publish(ctx context.Context, evt cloudevents.Event) error {

klog.V(4).Infof("Sending event: %v\n%s", sendingCtx, evt)
if result := cloudEventsClient.Send(sendingCtx, evt); cloudevents.IsUndelivered(result) {
return fmt.Errorf("failed to send event %s, %v", evt, result)
return fmt.Errorf("failed to send event %s, %v", evt.Context, result)
}

return nil
Expand Down

0 comments on commit 2fd7e26

Please sign in to comment.