From 178e2858c2caa4e0a87a3a0394d2bce07c86591e Mon Sep 17 00:00:00 2001 From: Sergey Aksenov Date: Mon, 9 Oct 2023 11:55:15 +0200 Subject: [PATCH] incorrect depth of getting frame fixed Signed-off-by: Sergey Aksenov --- pkg/log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/log/log.go b/pkg/log/log.go index 2ffe9e99b1..8addf8f259 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -198,7 +198,7 @@ func (l *logger) entry(fields ...field.M) *logrus.Entry { } } - frame := caller.GetFrame(3) + frame := caller.GetFrame(4) logFields["Function"] = frame.Function logFields["File"] = frame.File logFields["Line"] = frame.Line