Skip to content

Commit

Permalink
incorrect depth of getting frame fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Aksenov <[email protected]>
  • Loading branch information
k0taperk0t committed Oct 9, 2023
1 parent 4301258 commit 454828c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 454828c

Please sign in to comment.