Skip to content

Commit

Permalink
Fixing missing pretty logging on controller_binding. (openshift#1520)
Browse files Browse the repository at this point in the history
  • Loading branch information
n3wscott authored and kibbles-n-bytes committed Nov 3, 2017
1 parent 48ecff1 commit 411831c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/controller/controller_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,18 @@ func (c *controller) bindingAdd(obj interface{}) {
glog.Errorf(pcb.Messagef("Couldn't get key for object %+v: %v", obj, err))
return
}
pcb := pretty.NewContextBuilder(pretty.ServiceBinding, "", key)

acc, err := meta.Accessor(obj)
if err != nil {
glog.Errorf("error creating meta accessor: %v", err)
glog.Errorf(pcb.Messagef("error creating meta accessor: %v", err))
return
}

glog.V(6).Infof("ServiceBinding %v: received ADD/UPDATE event for: resourceVersion: %v", key, acc.GetResourceVersion())
glog.V(6).Info(pcb.Messagef(
"received ADD/UPDATE event for: resourceVersion: %v",
acc.GetResourceVersion()),
)

c.bindingQueue.Add(key)
}
Expand Down

0 comments on commit 411831c

Please sign in to comment.