fix break error print limit

This commit is contained in:
M09Ic 2024-08-21 16:52:20 +08:00
parent 57eab148ac
commit 678a6a44e4

View File

@ -740,6 +740,9 @@ func (pool *BrutePool) doBak() {
func (pool *BrutePool) recover() {
logs.Log.Errorf("%s ,failed request exceeds the threshold , task will exit. Breakpoint %d", pool.BaseURL, pool.wordOffset)
for i, bl := range pool.FailedBaselines {
if i > int(pool.BreakThreshold) {
break
}
logs.Log.Errorf("[failed.%d] %s", i, bl.String())
}
}