From 074feb09e273e2c614711c899189e66679b340d3 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 2ffe9e99b11..8addf8f2590 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