Skip to content

Commit

Permalink
日志去掉stack
Browse files Browse the repository at this point in the history
  • Loading branch information
mztlive committed Sep 18, 2023
1 parent 215afff commit 273a138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/zap.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ func createZapLogger(logOutputFile string, logDevelopment bool) *zap.Logger {

if logDevelopment {
development := zap.Development()
zapLogger = zap.New(core, development, zap.AddCaller(), zap.AddStacktrace(zap.ErrorLevel))
zapLogger = zap.New(core, development, zap.AddCaller())
} else {
zapLogger = zap.New(core, zap.AddCaller(), zap.AddStacktrace(zap.ErrorLevel))
zapLogger = zap.New(core, zap.AddCaller())
}

return zapLogger
Expand Down

0 comments on commit 273a138

Please sign in to comment.