Reduced log verbosity for pieces that are stable (#1274)

This commit is contained in:
David Zhao
2022-12-29 23:47:36 -08:00
committed by GitHub
parent fe6234329d
commit 112d6fc18b
8 changed files with 37 additions and 26 deletions
+2 -2
View File
@@ -302,7 +302,7 @@ func (f *Forwarder) Mute(muted bool) (bool, VideoLayers) {
return false, f.maxLayers
}
f.logger.Infow("setting forwarder mute", "muted", muted)
f.logger.Debugw("setting forwarder mute", "muted", muted)
f.muted = muted
// resync when muted so that sequence numbers do not jump on unmute
@@ -1271,7 +1271,7 @@ func (f *Forwarder) updateAllocation(alloc VideoAllocation, reason string) Video
}
if alloc.state != f.lastAllocation.state || alloc.targetLayers != f.lastAllocation.targetLayers {
f.logger.Infow(fmt.Sprintf("stream allocation: %s", reason), "allocation", alloc)
f.logger.Debugw(fmt.Sprintf("stream allocation: %s", reason), "allocation", alloc)
}
f.lastAllocation = alloc