mirror of
https://github.com/stoatchat/livekit-protocol.git
synced 2026-06-30 22:08:35 -04:00
Added the UnlikelyLogger constructor (#1169)
This commit is contained in:
@@ -106,6 +106,10 @@ type UnlikelyLogger struct {
|
||||
keysAndValues []any
|
||||
}
|
||||
|
||||
func NewUnlikelyLogger(logger Logger, keysAndValues ...any) UnlikelyLogger {
|
||||
return UnlikelyLogger{logger, keysAndValues}
|
||||
}
|
||||
|
||||
func (l UnlikelyLogger) makeLogger() Logger {
|
||||
return l.logger.WithCallDepth(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user