From a5915a310b726b9e3136ffaadc21d01483202d79 Mon Sep 17 00:00:00 2001 From: Khaled Emara Date: Fri, 16 Aug 2024 17:08:55 +0300 Subject: [PATCH] chore(log): add caller (#10874) Signed-off-by: Khaled Emara --- pkg/logging/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/logging/log.go b/pkg/logging/log.go index d2c3d9530a..1c7ec0d097 100644 --- a/pkg/logging/log.go +++ b/pkg/logging/log.go @@ -62,7 +62,7 @@ func Setup(logFormat string, loggingTimestampFormat string, level int) error { case TextFormat: output := zerolog.ConsoleWriter{Out: os.Stderr} output.TimeFormat = resolveTimestampFormat(loggingTimestampFormat) - logger = zerolog.New(output).With().Timestamp().Logger() + logger = zerolog.New(output).With().Timestamp().Caller().Logger() case JSONFormat: logger = zerolog.New(os.Stderr).With().Timestamp().Logger() default: