Skip to content

Commit b445015

Browse files
VanillaSpoonopenshift-merge-robot
authored andcommitted
fix: issue formatting logs
1 parent d83fbf2 commit b445015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/queuejob/queuejob_controller_ex.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (qjm *XController) allocatableCapacity() *clusterstateapi.Resource {
217217
}
218218
}
219219
}
220-
klog.Info("[allocatableCapacity] The avaible capacity to dispatch appwrapper is %v and time took to calculate is %v", capacity, time.Now().Sub(startTime))
220+
klog.Infof("[allocatableCapacity] The available capacity to dispatch appwrapper is %v and time took to calculate is %v", capacity, time.Since(startTime))
221221
return capacity
222222
}
223223

@@ -1239,7 +1239,7 @@ func (qjm *XController) ScheduleNext(qj *arbv1.AppWrapper) {
12391239
} else { // Not enough free resources to dispatch HOL
12401240
fits = false
12411241
dispatchFailedMessage = "Insufficient resources to dispatch AppWrapper."
1242-
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",
1242+
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",
12431243
qj.Namespace, qj.Name, qjm.qjqueue.IfExistActiveQ(qj),
12441244
qjm.qjqueue.IfExistUnschedulableQ(qj), qj, qj.ResourceVersion, qj.Status)
12451245
// TODO: Remove forwarded logic as a big AW will never be forwarded

0 commit comments

Comments
 (0)