Skip to content

Commit

Permalink
fix v1.2.2 DPANIC
Browse files Browse the repository at this point in the history
Signed-off-by: ovaldi <raoh.wu@gmail.com>
  • Loading branch information
ovaldi committed Nov 28, 2024
1 parent 17e932c commit d79191e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/provider/kubernetes/status_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ func (u *UpdateWriter) Send(update Update) {
u.eventsBeforeEnabled <- update
} else {
// If the buffer is full, drop the event to avoid blocking the sender.
u.log.Error(errors.New("dropping status update, buffer full"), "event", update.NamespacedName)
u.log.Error(errors.New("dropping status update, buffer full"), "event",
"name", update.NamespacedName.Name,
"namespace", update.NamespacedName.Namespace)

Check warning on line 193 in internal/provider/kubernetes/status_updater.go

View check run for this annotation

Codecov / codecov/patch

internal/provider/kubernetes/status_updater.go#L191-L193

Added lines #L191 - L193 were not covered by tests
}
}
}
Expand Down

0 comments on commit d79191e

Please sign in to comment.