Skip to content

Commit

Permalink
incorrect depth of getting frame fixed (#2383)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Aksenov <[email protected]>
  • Loading branch information
k0taperk0t authored and Le Tran committed Oct 18, 2023
1 parent 710d087 commit 9fbc217
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 9fbc217

Please sign in to comment.