Skip to content

Commit

Permalink
Add some debug logging to see churn
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Mar 23, 2018
1 parent 34fad5e commit fcf2b88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clientbase/object_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"

"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
Expand Down Expand Up @@ -150,6 +151,7 @@ func (p *ObjectClient) Update(name string, o runtime.Object) (runtime.Object, er
if len(name) == 0 {
return result, errors.New("object missing name")
}
logrus.Debugf("UPDATE %s/%s/%s/%s/%s/%s", p.getAPIPrefix(), p.gvk.Group, p.gvk.Version, ns, p.resource.Name, name)
err := p.restClient.Put().
Prefix(p.getAPIPrefix(), p.gvk.Group, p.gvk.Version).
NamespaceIfScoped(ns, p.resource.Namespaced).
Expand Down
1 change: 1 addition & 0 deletions controller/generic_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ func (g *genericController) syncHandler(s string) (err error) {

var errs []error
for _, handler := range g.handlers {
logrus.Debugf("%s calling handler %s %s", g.name, handler.name, s)
if err := handler.handler(s); err != nil {
errs = append(errs, &handlerError{
name: handler.name,
Expand Down

0 comments on commit fcf2b88

Please sign in to comment.