fix: work around logr 1.0 WithCallDepth bug (#73)

https://github.com/go-logr/logr/pull/58
This commit is contained in:
hn8
2021-07-29 10:19:40 -07:00
committed by GitHub
parent a9c4851113
commit c57e2860ca
+1 -1
View File
@@ -30,7 +30,7 @@ func SetLogger(l logr.Logger) {
sfu.Logger = l.WithName("sfu")
buffer.Logger = sfu.Logger
defaultLogger = l.WithName("livekit").WithCallDepth(1)
defaultLogger = l.WithCallDepth(1).WithName("livekit")
}
func LoggerFactory() logging.LoggerFactory {