Skip to content

Commit

Permalink
fix: fix the problem that 'DisableStacktrace=true' does not take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
windvalley committed Jul 29, 2022
1 parent 5c7fe6b commit 5e41d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func New(opts *Options) *Logger {
buildOptions(loggerConfig, errSink)...,
)

l = l.WithOptions(zap.AddStacktrace(zapcore.PanicLevel), zap.AddCallerSkip(1))
l = l.WithOptions(zap.AddCallerSkip(1))

return newLogger(l, opts)
}
Expand Down

0 comments on commit 5e41d41

Please sign in to comment.