mirror of
https://github.com/livekit/livekit.git
synced 2026-07-29 11:59:49 +00:00
Log cleanup pass (#2285)
* Log cleanup pass Demoted a bunch of logs to DEBUG, consolidated logs. * use context logger and fix context var usage * moved common error types, fixed tests
This commit is contained in:
@@ -350,7 +350,10 @@ func (b *Buffer) Close() error {
|
||||
|
||||
if b.rtpStats != nil {
|
||||
b.rtpStats.Stop()
|
||||
b.logger.Infow("rtp stats", "direction", "upstream", "stats", b.rtpStats.ToString())
|
||||
b.logger.Debugw("rtp stats",
|
||||
"direction", "upstream",
|
||||
"stats", func() interface{} { return b.rtpStats.ToString() },
|
||||
)
|
||||
if b.onFinalRtpStats != nil {
|
||||
b.onFinalRtpStats(b.rtpStats.ToProto())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user