Skip to content

Commit

Permalink
fix: issue formatting logs
Browse files Browse the repository at this point in the history
  • Loading branch information
VanillaSpoon authored and openshift-merge-robot committed Sep 18, 2023
1 parent d83fbf2 commit b445015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/queuejob/queuejob_controller_ex.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b445015

Please sign in to comment.