Skip to content

Commit

Permalink
perf: log caller
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed May 22, 2024
1 parent b6a1d53 commit 474034e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func InitLogger(newLogPaths []string) {
zapcore.NewMultiWriteSyncer(syncers...),
logAtomLevel,
)
Logger = zap.New(core, zap.AddStacktrace(zap.ErrorLevel))
Logger = zap.New(core, zap.AddStacktrace(zap.ErrorLevel), zap.AddCaller())
}

func SetLogLevel(newLogLevel string) {
Expand Down

0 comments on commit 474034e

Please sign in to comment.