Fix incorrect logging format in sj controller

pull/6/head
Janet Kuo 2016-08-09 17:46:35 -07:00
parent 5aaaaff07c
commit 7eeba370e2
1 changed files with 3 additions and 3 deletions

View File

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