From 5ee307952e069769f76fe02aa507fb50251ec45f Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Mon, 18 Dec 2023 14:27:55 +0530 Subject: [PATCH] Reduce a couple of logs to Debugw. Small saving. (#2322) --- pkg/rtc/transport.go | 4 ++-- pkg/sfu/streamallocator/streamallocator.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/rtc/transport.go b/pkg/rtc/transport.go index 528d14b02..d449cf3d9 100644 --- a/pkg/rtc/transport.go +++ b/pkg/rtc/transport.go @@ -633,9 +633,9 @@ func (t *PCTransport) onICEConnectionStateChange(state webrtc.ICEConnectionState t.setICEStartedAt(time.Now()) case webrtc.ICEConnectionStateDisconnected: - fallthrough - case webrtc.ICEConnectionStateFailed: t.params.Logger.Infow("ice connection state change unexpected", "state", state.String()) + case webrtc.ICEConnectionStateFailed: + t.params.Logger.Debugw("ice connection state change unexpected", "state", state.String()) } } diff --git a/pkg/sfu/streamallocator/streamallocator.go b/pkg/sfu/streamallocator/streamallocator.go index 8fde6e3c7..364dd0895 100644 --- a/pkg/sfu/streamallocator/streamallocator.go +++ b/pkg/sfu/streamallocator/streamallocator.go @@ -835,7 +835,7 @@ func (s *StreamAllocator) handleNewEstimateInNonProbe() { "commitThreshold(bps)", commitThreshold, "channel", s.channelObserver.ToString(), ) - s.params.Logger.Infow( + s.params.Logger.Debugw( fmt.Sprintf("stream allocator: channel congestion detected, %s channel capacity: experimental", action), "rateHistory", s.rateMonitor.GetHistory(), "expectedQueuing", s.rateMonitor.GetQueuingGuess(),