ScheduledJob controller is too chatty

Sync information is printed far too often
pull/6/head
Clayton Coleman 2016-09-11 14:03:24 -04:00
parent 0c63bd03fa
commit 8b71007601
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 3 additions and 3 deletions

View File

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