fix break error print limit

This commit is contained in:
M09Ic committed 2024-08-21 16:52:20 +08:00
1 parent 6326902a5e
commit c79ec2f6ee
1 file changed
+3
+3
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())
}
}