Skip to content

Commit

Permalink
Merge pull request #3933 from zedongh/chore-preempt-victims-log-with-…
Browse files Browse the repository at this point in the history
…details

chore: use Infof for slice taskinfo instead of InfoS log less details
  • Loading branch information
volcano-sh-bot authored Dec 28, 2024
2 parents 8962bf8 + 06d01ba commit 8b08e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/scheduler/plugins/capacity/capacity.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (cp *capacityPlugin) OnSessionOpen(ssn *framework.Session) {
allocated.Sub(reclaimee.Resreq)
victims = append(victims, reclaimee)
}
klog.V(4).InfoS("Victims from capacity plugin", "victims", victims, "reclaimer", reclaimer)
klog.V(4).Infof("Victims from capacity plugin, victims=%+v reclaimer=%s", victims, reclaimer)
return victims, util.Permit
})

Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/plugins/gang/gang.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (gp *gangPlugin) OnSessionOpen(ssn *framework.Session) {
}
}

klog.V(4).InfoS("Victims from Gang plugins", "victims", victims, "preemptor", preemptor)
klog.V(4).Infof("Victims from Gang plugins, victims=%+v preemptor=%s", victims, preemptor)

return victims, util.Permit
}
Expand Down

0 comments on commit 8b08e85

Please sign in to comment.