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 <sergey.aksenov@veeam.com>
  • Loading branch information
k0taperk0t authored Oct 12, 2023
1 parent c688441 commit ea2f59f
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 ea2f59f

Please sign in to comment.