Skip to content

Commit 9f74519

Browse files
committed
add errorlog
1 parent ac7b94b commit 9f74519

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/utils.go

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func AllocContainerPlan(nodeInfo ByCoreNum, quota int, memory int64, count int)
121121
}
122122
}
123123
if flag == -1 {
124+
log.Errorf("Cannot alloc a plan, not enough cpu quota, got flat %d", flag)
124125
return result, fmt.Errorf("Cannot alloc a plan, not enough cpu quota")
125126
}
126127

@@ -137,6 +138,7 @@ func AllocContainerPlan(nodeInfo ByCoreNum, quota int, memory int64, count int)
137138
}
138139
}
139140
if volume < count {
141+
log.Errorf("Cannot alloc a plan, volume %d, count %d", volume, count)
140142
return result, fmt.Errorf("Cannot alloc a plan, not enough memory.")
141143
}
142144

0 commit comments

Comments
 (0)