From 8b71007601ca6a3d9ae01caa8b18c40486899d6f Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Sun, 11 Sep 2016 14:03:24 -0400 Subject: [PATCH] ScheduledJob controller is too chatty Sync information is printed far too often --- pkg/controller/scheduledjob/controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/scheduledjob/controller.go b/pkg/controller/scheduledjob/controller.go index c06fbafa7aa..45680ab82df 100644 --- a/pkg/controller/scheduledjob/controller.go +++ b/pkg/controller/scheduledjob/controller.go @@ -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)