gfe-relnote: (n/a) Rate limit a QUIC_LOG(ERROR) in BandwidthSampler. Logging only.

PiperOrigin-RevId: 272431725
Change-Id: I7038cd012d73784147eed01e4e591098f796eb22
diff --git a/quic/core/congestion_control/bandwidth_sampler.cc b/quic/core/congestion_control/bandwidth_sampler.cc
index 24dc14e..8899704 100644
--- a/quic/core/congestion_control/bandwidth_sampler.cc
+++ b/quic/core/congestion_control/bandwidth_sampler.cc
@@ -201,10 +201,11 @@
     } else {
       QUIC_CODE_COUNT_N(quic_prev_ack_time_larger_than_current_ack_time, 2, 2);
     }
-    QUIC_LOG(ERROR) << "Time of the previously acked packet:"
-                    << sent_packet.last_acked_packet_ack_time.ToDebuggingValue()
-                    << " is larger than the ack time of the current packet:"
-                    << ack_time.ToDebuggingValue();
+    QUIC_LOG_EVERY_N_SEC(ERROR, 5)
+        << "Time of the previously acked packet:"
+        << sent_packet.last_acked_packet_ack_time.ToDebuggingValue()
+        << " is larger than the ack time of the current packet:"
+        << ack_time.ToDebuggingValue();
     return BandwidthSample();
   }
   QuicBandwidth ack_rate = QuicBandwidth::FromBytesAndTimeDelta(