Skip to content

Commit

Permalink
fix: avoid overly verbose stack traces on warn level logs
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Aug 13, 2021
1 parent 676c673 commit cac25d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/piv-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
var log *zap.Logger
var err error
if cli.Debug {
log, err = zap.NewDevelopment()
log, err = zap.NewDevelopment(zap.AddStacktrace(zap.ErrorLevel))
} else {
log, err = zap.NewProduction()
}
Expand Down

0 comments on commit cac25d3

Please sign in to comment.