Merge pull request #5612 from wangxf1987/fix/improve-log
Show more debug logs when failed to build resource model due to `getIndex` fails
This commit is contained in:
commit
e4c6f54c7a
|
@ -163,7 +163,7 @@ func (rs *ResourceSummary) clusterResourceNodeComparator(a, b interface{}) int {
|
|||
func (rs *ResourceSummary) AddToResourceSummary(crn ClusterResourceNode) {
|
||||
index := rs.getIndex(crn)
|
||||
if index == -1 {
|
||||
klog.Error("ClusterResource can not add to resource summary: index is invalid.")
|
||||
klog.Errorf("Failed to add node to resource summary due to no appropriate grade. ClusterResourceNode:%v", crn)
|
||||
return
|
||||
}
|
||||
modeling := &(*rs).RMs[index]
|
||||
|
|
Loading…
Reference in New Issue