mirror of https://github.com/k3s-io/k3s
Handle panic in async event reporting
parent
4e27ed67e4
commit
4ba6a2541b
|
@ -262,6 +262,7 @@ func (recorder *recorderImpl) generateEvent(object runtime.Object, timestamp unv
|
|||
|
||||
go func() {
|
||||
// NOTE: events should be a non-blocking operation
|
||||
defer util.HandleCrash()
|
||||
recorder.Action(watch.Added, event)
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue