Skip to content

Commit

Permalink
Rearange EventBroadcaster log statement.
Browse files Browse the repository at this point in the history
The event message should be the message passed to the log statement
rather than a value.
  • Loading branch information
danaradg committed Aug 10, 2022
1 parent bcde6f0 commit 43b0e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/internal/recorder/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (p *Provider) getBroadcaster() record.EventBroadcaster {
broadcaster.StartRecordingToSink(&corev1client.EventSinkImpl{Interface: p.evtClient})
broadcaster.StartEventWatcher(
func(e *corev1.Event) {
p.logger.V(1).Info(e.Type, "object", e.InvolvedObject, "reason", e.Reason, "message", e.Message)
p.logger.V(1).Info(e.Message, "type", e.Type, "object", e.InvolvedObject, "reason", e.Reason)
})
p.broadcaster = broadcaster
p.stopBroadcaster = stop
Expand Down

0 comments on commit 43b0e4b

Please sign in to comment.