Skip to content

Commit ddfc5a0

Browse files
committed
log: callerat for LogFn2 is one frame lower
1 parent 6bbf676 commit ddfc5a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intra/log/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func Of(tag string, l LogFn2) LogFn {
8787
if l != nil {
8888
return func(msg string, args ...any) {
8989
// caller -> LogFn (parent fn) -> intra/log.go*2(this file) -> intra/logger.go -> golang/log.go
90-
l(callerat+nextframe, tag+" "+msg, args...)
90+
l(callerat, tag+" "+msg, args...)
9191
}
9292
}
9393
return N

0 commit comments

Comments
 (0)