Skip to content

Commit

Permalink
fix: increase logger caller depth from 3 to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonng committed Jun 29, 2024
1 parent 674cb78 commit e41aaff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exporter/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ func configureLogger(levelStr, formatStr string) log.Logger {
}

logger = level.NewFilter(logger, lvl)
logger = log.With(logger, "timestamp", log.DefaultTimestampUTC, "caller", log.DefaultCaller)

logger = log.With(logger, "timestamp", log.DefaultTimestampUTC, "caller", log.Caller(4))
return logger
}

Expand Down

0 comments on commit e41aaff

Please sign in to comment.