fix: work around logr 1.0 WithCallDepth bug (#73)
https://github.com/go-logr/logr/pull/58
This commit is contained in:
@@ -30,7 +30,7 @@ func SetLogger(l logr.Logger) {
|
|||||||
sfu.Logger = l.WithName("sfu")
|
sfu.Logger = l.WithName("sfu")
|
||||||
buffer.Logger = sfu.Logger
|
buffer.Logger = sfu.Logger
|
||||||
|
|
||||||
defaultLogger = l.WithName("livekit").WithCallDepth(1)
|
defaultLogger = l.WithCallDepth(1).WithName("livekit")
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoggerFactory() logging.LoggerFactory {
|
func LoggerFactory() logging.LoggerFactory {
|
||||||
|
|||||||
Reference in New Issue
Block a user