From bf914f8fabfab60241f04f757253dc4136915432 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sat, 2 Dec 2023 10:14:08 -0800 Subject: [PATCH] Add call depth to Pion logger --- logger/pionlogger/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger/pionlogger/logger.go b/logger/pionlogger/logger.go index dcc66dc4..355a505f 100644 --- a/logger/pionlogger/logger.go +++ b/logger/pionlogger/logger.go @@ -61,7 +61,7 @@ func NewLoggerFactory(logger logger.Logger) *LoggerFactory { func (f *LoggerFactory) NewLogger(scope string) logging.LeveledLogger { return &logAdapter{ - logger: f.logger.WithComponent("pion." + scope), + logger: f.logger.WithComponent("pion." + scope).WithCallDepth(1), ignoredPrefixes: pionIgnoredPrefixes[scope], } }