mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl/ctlv3/command: enable gRPC WARNING logs by default
This commit is contained in:
parent
61404132a9
commit
9ce295a812
@ -128,7 +128,9 @@ func clientConfigFromCmd(cmd *cobra.Command) *clientConfig {
|
||||
fmt.Fprintf(os.Stderr, "%s=%v\n", flags.FlagToEnv("ETCDCTL", f.Name), f.Value)
|
||||
})
|
||||
} else {
|
||||
clientv3.SetLogger(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
|
||||
// Enable logging for WARNING and ERROR since these levels include issues with
|
||||
// connecting to the server, such as TLS misconfiguration.
|
||||
clientv3.SetLogger(grpclog.NewLoggerV2(ioutil.Discard, os.Stderr, os.Stderr))
|
||||
}
|
||||
|
||||
cfg := &clientConfig{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user