mirror of https://github.com/k3s-io/k3s
Merge pull request #62784 from hanxiaoshuai/bugfix0418
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. we should use Infof when we are using format string **What this PR does / why we need it**: we should use Infof when we are using format string. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```pull/8/head
commit
4692a6bf2e
|
@ -65,7 +65,7 @@ func (p *VersionedPrinter) PrintObj(obj runtime.Object, w io.Writer) error {
|
|||
// if we're already external, no conversion necessary
|
||||
gvks, _, err := p.typer.ObjectKinds(obj)
|
||||
if err != nil {
|
||||
glog.V(1).Info("error determining type for %T, using passed object: %v", obj, err)
|
||||
glog.V(1).Infof("error determining type for %T, using passed object: %v", obj, err)
|
||||
return p.printer.PrintObj(obj, w)
|
||||
}
|
||||
needsConversion := false
|
||||
|
|
Loading…
Reference in New Issue