Skip to content

Commit f17515d

Browse files
committed
log: incr file trace for verbose
1 parent e3fd1a2 commit f17515d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

intra/log/logger.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,15 @@ func (l *simpleLogger) writelog(lvl LogLevel, at int, msg string, args ...any) {
571571
}
572572
if ll || cc {
573573
switch lvl {
574-
case VERBOSE:
575-
fallthrough
576574
case VVERBOSE:
575+
if _, x := caller1(at+nextframe+6, ">"); tracecaller(x) {
576+
trace += x
577+
}
578+
fallthrough
579+
case VERBOSE:
580+
if _, x := caller1(at+nextframe+5, ">"); tracecaller(x) {
581+
trace += x
582+
}
577583
fallthrough
578584
case ERROR:
579585
if _, x := caller1(at+nextframe+4, ">"); tracecaller(x) {

0 commit comments

Comments
 (0)