mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Use Infof/Warningf when appropriate
When we use a format string, we should use Infof/Warningf instead of Info/Warning
This commit is contained in:
@@ -247,7 +247,7 @@ func (kd *KubeDNS) newService(obj interface{}) {
|
||||
return
|
||||
}
|
||||
if len(service.Spec.Ports) == 0 {
|
||||
glog.Warning("Unexpected service with no ports, this should not have happend: %v", service)
|
||||
glog.Warningf("Unexpected service with no ports, this should not have happend: %v", service)
|
||||
}
|
||||
kd.newPortalService(service)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user