Skip to content
Snippets Groups Projects
Unverified Commit b2123661 authored by Angus Lees's avatar Angus Lees
Browse files

Trivial debugging log message fixes

Noticed and then audited in the course of other work.
parent 2ae97e9f
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ var deleteCmd = &cobra.Command{
return fmt.Errorf("Error deleting %s: %s", desc, err)
}
log.Debugf("Deleted object: ", obj)
log.Debug("Deleted object: ", obj)
}
return nil
......
......@@ -72,7 +72,7 @@ var diffCmd = &cobra.Command{
diffFound := false
for _, obj := range objs {
desc := fmt.Sprintf("%s %s", utils.ResourceNameFor(disco, obj), utils.FqName(obj))
log.Debugf("Fetching ", desc)
log.Debug("Fetching ", desc)
c, err := utils.ClientForResource(clientpool, disco, obj, defaultNs)
if err != nil {
......
......@@ -80,7 +80,7 @@ func (c UpdateCmd) Run(objs []*unstructured.Unstructured) error {
var newobj metav1.Object
if !c.DryRun {
newobj, err = rc.Patch(obj.GetName(), types.MergePatchType, asPatch)
log.Debug("Patch(%s) returned (%v, %v)", obj.GetName(), newobj, err)
log.Debugf("Patch(%s) returned (%v, %v)", obj.GetName(), newobj, err)
} else {
newobj, err = rc.Get(obj.GetName())
}
......@@ -88,7 +88,7 @@ func (c UpdateCmd) Run(objs []*unstructured.Unstructured) error {
log.Info(" Creating non-existent ", desc, dryRunText)
if !c.DryRun {
newobj, err = rc.Create(obj)
log.Debug("Create(%s) returned (%v, %v)", obj.GetName(), newobj, err)
log.Debugf("Create(%s) returned (%v, %v)", obj.GetName(), newobj, err)
} else {
newobj = obj
err = nil
......
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