Skip to content

Commit 6e30ed5

Browse files
authored
Merge pull request kubernetes-retired#558 from mateusz-ciesielski/master
Reduce verbosity level for recurring logs
2 parents 06d253c + 68e376d commit 6e30ed5

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

pkg/scheduler/actions/allocate/allocate.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (alloc *allocateAction) Execute(ssn *framework.Session) {
5454
queues.Push(queue)
5555
}
5656

57-
glog.V(3).Infof("Added Job <%s/%s> into Queue <%s>", job.Namespace, job.Name, job.Queue)
57+
glog.V(4).Infof("Added Job <%s/%s> into Queue <%s>", job.Namespace, job.Name, job.Queue)
5858
jobsMap[job.Queue].Push(job)
5959
}
6060

@@ -78,7 +78,7 @@ func (alloc *allocateAction) Execute(ssn *framework.Session) {
7878
glog.V(3).Infof("Try to allocate resource to Jobs in Queue <%v>", queue.Name)
7979

8080
if !found || jobs.Empty() {
81-
glog.V(3).Infof("Can not find jobs for queue %s.", queue.Name)
81+
glog.V(4).Infof("Can not find jobs for queue %s.", queue.Name)
8282
continue
8383
}
8484

@@ -88,7 +88,7 @@ func (alloc *allocateAction) Execute(ssn *framework.Session) {
8888
for _, task := range job.TaskStatusIndex[api.Pending] {
8989
// Skip BestEffort task in 'allocate' action.
9090
if task.Resreq.IsEmpty() {
91-
glog.V(3).Infof("Task <%v/%v> is BestEffort task, skip it.",
91+
glog.V(4).Infof("Task <%v/%v> is BestEffort task, skip it.",
9292
task.Namespace, task.Name)
9393
continue
9494
}

pkg/scheduler/actions/preempt/preempt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (alloc *preemptAction) Execute(ssn *framework.Session) {
7878

7979
// If no preemptors, no preemption.
8080
if preemptors == nil || preemptors.Empty() {
81-
glog.V(3).Infof("No preemptors in Queue <%s>, break.", queue.Name)
81+
glog.V(4).Infof("No preemptors in Queue <%s>, break.", queue.Name)
8282
break
8383
}
8484

pkg/scheduler/actions/reclaim/reclaim.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (alloc *reclaimAction) Execute(ssn *framework.Session) {
5757
job.Queue, job.Namespace, job.Name)
5858
continue
5959
} else {
60-
glog.V(3).Infof("Added Queue <%s> for Job <%s/%s>",
60+
glog.V(4).Infof("Added Queue <%s> for Job <%s/%s>",
6161
queue.Name, job.Namespace, job.Name)
6262
queues.Push(queue)
6363
}

pkg/scheduler/cache/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func (sc *SchedulerCache) Snapshot() *kbapi.ClusterInfo {
560560
for _, value := range sc.Jobs {
561561
// If no scheduling spec, does not handle it.
562562
if value.PodGroup == nil && value.PDB == nil {
563-
glog.V(3).Infof("The scheduling spec of Job <%v:%s/%s> is nil, ignore it.",
563+
glog.V(4).Infof("The scheduling spec of Job <%v:%s/%s> is nil, ignore it.",
564564
value.UID, value.Namespace, value.Name)
565565

566566
// Also tracing the running task assigned by other scheduler.

pkg/scheduler/plugins/gang/gang.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (gp *gangPlugin) OnSessionOpen(ssn *framework.Session) {
113113
lReady := jobReady(lv)
114114
rReady := jobReady(rv)
115115

116-
glog.V(3).Infof("Gang JobOrderFn: <%v/%v> is ready: %t, <%v/%v> is ready: %t",
116+
glog.V(4).Infof("Gang JobOrderFn: <%v/%v> is ready: %t, <%v/%v> is ready: %t",
117117
lv.Namespace, lv.Name, lReady, rv.Namespace, rv.Name, rReady)
118118

119119
if lReady && rReady {

0 commit comments

Comments
 (0)