Merge pull request #30328 from janetkuo/sj-log-fix

Automatic merge from submit-queue

Fix incorrect logging format in sj controller



<!-- Reviewable:start -->
This change is [<img src="https://reviewable.kubernetes.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/30328)
<!-- Reviewable:end -->
This commit is contained in:
Kubernetes Submit Queue 2016-08-10 07:10:13 -07:00 committed by GitHub
commit c97b76326c

View File

@ -99,7 +99,7 @@ func (jm *ScheduledJobController) SyncAll() {
return
}
sjs := sjl.Items
glog.Info("Found %d scheduledjobs", len(sjs))
glog.Infof("Found %d scheduledjobs", len(sjs))
jl, err := jm.kubeClient.Batch().Jobs(api.NamespaceAll).List(api.ListOptions{})
if err != nil {
@ -107,10 +107,10 @@ func (jm *ScheduledJobController) SyncAll() {
return
}
js := jl.Items
glog.Info("Found %d jobs", len(js))
glog.Infof("Found %d jobs", len(js))
jobsBySj := groupJobsByParent(sjs, js)
glog.Info("Found %d groups", len(jobsBySj))
glog.Infof("Found %d groups", len(jobsBySj))
for _, sj := range sjs {
SyncOne(sj, jobsBySj[sj.UID], time.Now(), jm.jobControl, jm.sjControl, jm.recorder)