Structured Logging migration:modify Scheduler part logs.

Signed-off-by: JunYang <yang.jun22@zte.com.cn>
This commit is contained in:
JunYang
2021-02-21 09:56:46 +08:00
parent 2584a7c0bb
commit 93047824f7
3 changed files with 9 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ func GetPodStartTime(pod *v1.Pod) *metav1.Time {
func GetEarliestPodStartTime(victims *extenderv1.Victims) *metav1.Time {
if len(victims.Pods) == 0 {
// should not reach here.
klog.Errorf("victims.Pods is empty. Should not reach here.")
klog.ErrorS(fmt.Errorf("victims.Pods is empty. Should not reach here"), "")
return nil
}