diff --git a/cmd/piv-agent/main.go b/cmd/piv-agent/main.go index 6afbd3c..80e2c79 100644 --- a/cmd/piv-agent/main.go +++ b/cmd/piv-agent/main.go @@ -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() }