Fix log marshal error (#2295)

This commit is contained in:
cnderrauber
2023-12-06 00:08:48 +08:00
committed by GitHub
parent d4c4bc1100
commit e1cc9d6b3c
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ func (b *Buffer) Close() error {
b.rtpStats.Stop()
b.logger.Debugw("rtp stats",
"direction", "upstream",
"stats", func() interface{} { return b.rtpStats.ToString() },
"stats", b.rtpStats,
)
if b.onFinalRtpStats != nil {
b.onFinalRtpStats(b.rtpStats.ToProto())