code: func (m *imageManager) logIt(ref *v1.ObjectReference, eventtype, event, prefix, msg string, logFn func(args ...interface{})) {
  	if ref != nil {
  		m.recorder.Event(ref, eventtype, event, msg)
  	} else {
  		logFn(fmt.Sprint(prefix, " ", msg))
  	}
  }
docs: // records an event using ref, event msg.  log to glog using prefix, msg, logFn