Reduce a couple of logs to Debugw. Small saving. (#2322)

This commit is contained in:
Raja Subramanian
2023-12-18 14:27:55 +05:30
committed by GitHub
parent 3cf4fbc6a9
commit 5ee307952e
2 changed files with 3 additions and 3 deletions

View File

@@ -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())
}
}

View File

@@ -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(),