cmd/tools/tag-signer: make the output less noisy
This patch removes the following lines from the output (with disable tracing + set the log level to warn): ``` 2023-09-25T15:30:58+02:00 INFO process/tracing.go:73 Anonymized tracing enabled 2023-09-25T15:30:58+02:00 DEBUG tracing collector monkit-jaeger@v0.0.0-20220915074555-d100d7589f41/udp.go:128 started 2023-09-25T15:30:58+02:00 DEBUG process/debug.go:37 debug server listening on 127.0.0.1:34803 ``` Change-Id: Iccbf4fc3bde9436e0571943d0d85c51ebc766ef9
This commit is contained in:
parent
05a276ecc7
commit
0affe03007
@ -14,7 +14,9 @@ import (
|
||||
|
||||
"github.com/gogo/protobuf/proto"
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/zeebo/errs"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"storj.io/common/identity"
|
||||
"storj.io/common/nodetag"
|
||||
@ -182,5 +184,18 @@ func inspect(ctx context.Context, s string) error {
|
||||
}
|
||||
|
||||
func main() {
|
||||
process.Exec(rootCmd)
|
||||
process.ExecWithCustomOptions(rootCmd, process.ExecOptions{
|
||||
LoadConfig: func(cmd *cobra.Command, vip *viper.Viper) error {
|
||||
return nil
|
||||
},
|
||||
InitTracing: false,
|
||||
LoggerFactory: func(logger *zap.Logger) *zap.Logger {
|
||||
newLogger, level, err := process.NewLogger("tag-signer")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
level.SetLevel(zap.WarnLevel)
|
||||
return newLogger
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user