Skip to content

Commit

Permalink
Fix event recorder not to log events without a reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pmorie committed Mar 10, 2015
1 parent 401babe commit a373b23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/client/record/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func (i *recorderImpl) Event(object runtime.Object, reason, message string) {
ref, err := api.GetReference(object)
if err != nil {
glog.Errorf("Could not construct reference to: '%#v' due to: '%v'. Will not report event: '%v' '%v'", object, err, reason, message)
return
}

e := makeEvent(ref, reason, message)
Expand Down

0 comments on commit a373b23

Please sign in to comment.