zijiren пре 1 месец
родитељ
комит
7bbefce3ef
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      core/model/batch.go

+ 3 - 2
core/model/batch.go

@@ -358,8 +358,9 @@ func BatchRecordLogs(
 			)
 			)
 		}
 		}
 	} else {
 	} else {
-		if config.GetLogStorageHours() >= 0 &&
-			config.GetRetryLogStorageHours() >= 0 {
+		if code != http.StatusTooManyRequests &&
+			config.GetLogStorageHours() >= 0 &&
+			config.GetRetryLogStorageHours() > 0 {
 			err = RecordRetryLog(
 			err = RecordRetryLog(
 				requestID,
 				requestID,
 				now,
 				now,