Commit 4ba6a254 authored by Jordan Liggitt's avatar Jordan Liggitt

Handle panic in async event reporting

parent 4e27ed67
...@@ -262,6 +262,7 @@ func (recorder *recorderImpl) generateEvent(object runtime.Object, timestamp unv ...@@ -262,6 +262,7 @@ func (recorder *recorderImpl) generateEvent(object runtime.Object, timestamp unv
go func() { go func() {
// NOTE: events should be a non-blocking operation // NOTE: events should be a non-blocking operation
defer util.HandleCrash()
recorder.Action(watch.Added, event) recorder.Action(watch.Added, event)
}() }()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment