Skip to content

Commit

Permalink
log stacktrace for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Apr 29, 2021
1 parent cd6deec commit c064790
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 @@ -247,5 +247,5 @@ func InitLogger(logLevel string, logPaths []string) {
zapcore.NewMultiWriteSyncer(syncers...),
lvl,
)
Logger = zap.New(core)
Logger = zap.New(core, zap.AddStacktrace(zap.ErrorLevel))
}

0 comments on commit c064790

Please sign in to comment.