From b445015360abf09bf11bb1c7024068005a1a8a87 Mon Sep 17 00:00:00 2001 From: Eoin Gallinagh Date: Mon, 18 Sep 2023 12:46:47 +0100 Subject: [PATCH] fix: issue formatting logs --- pkg/controller/queuejob/queuejob_controller_ex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/queuejob/queuejob_controller_ex.go b/pkg/controller/queuejob/queuejob_controller_ex.go index 7b7a80a9..8d356403 100644 --- a/pkg/controller/queuejob/queuejob_controller_ex.go +++ b/pkg/controller/queuejob/queuejob_controller_ex.go @@ -217,7 +217,7 @@ func (qjm *XController) allocatableCapacity() *clusterstateapi.Resource { } } } - klog.Info("[allocatableCapacity] The avaible capacity to dispatch appwrapper is %v and time took to calculate is %v", capacity, time.Now().Sub(startTime)) + klog.Infof("[allocatableCapacity] The available capacity to dispatch appwrapper is %v and time took to calculate is %v", capacity, time.Since(startTime)) return capacity } @@ -1239,7 +1239,7 @@ func (qjm *XController) ScheduleNext(qj *arbv1.AppWrapper) { } else { // Not enough free resources to dispatch HOL fits = false dispatchFailedMessage = "Insufficient resources to dispatch AppWrapper." - klog.Infof("[ScheduleNext] [Agent Mode] Failed to dispatch app wrapper '%s/%s' due to insuficient resources, activeQ=%t Unsched=%t &qj=%p Version=%s Status=%+v", + klog.Infof("[ScheduleNext] [Agent Mode] Failed to dispatch app wrapper '%s/%s' due to insufficient resources, activeQ=%t Unsched=%t &qj=%p Version=%s Status=%+v", qj.Namespace, qj.Name, qjm.qjqueue.IfExistActiveQ(qj), qjm.qjqueue.IfExistUnschedulableQ(qj), qj, qj.ResourceVersion, qj.Status) // TODO: Remove forwarded logic as a big AW will never be forwarded