Reduce log amount when running stats tests.
Bug: none
Change-Id: Icd914ae909f2ea1853cc58f6217933f8d320ceb6
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/250162
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35884}
diff --git a/pc/peer_connection.cc b/pc/peer_connection.cc
index 75feb79..4e951a5 100644
--- a/pc/peer_connection.cc
+++ b/pc/peer_connection.cc
@@ -1169,6 +1169,9 @@
RTC_LOG_THREAD_BLOCK_COUNT();
stats_->UpdateStats(level);
+
+ RTC_DCHECK_BLOCK_COUNT_NO_MORE_THAN(4);
+
// The StatsCollector is used to tell if a track is valid because it may
// remember tracks that the PeerConnection previously removed.
if (track && !stats_->IsValidTrack(track->id())) {