Set etcd log level to error

This commit is contained in:
Kuba Podgórski 2021-01-15 14:11:48 +01:00
parent 6cd8f6a970
commit a4f9aee28e
2 changed files with 2 additions and 1 deletions

View file

@ -115,6 +115,8 @@ func (e *Etcd) Close() error {
func parseOptions(opt Options) *embed.Config {
cfg := embed.NewConfig()
cfg.Debug = false // true gives data races on grpc.EnableTracing in etcd
cfg.LogLevel = "error"
cfg.Logger = "zap"
cfg.Name = opt.Name
cfg.Dir = opt.Dir
cfg.InitialClusterToken = opt.ClusterName

View file

@ -275,7 +275,6 @@ func (c *Cluster) Start() error {
return cc.Start()
})
// fixes race on gossip: time.Sleep(time.Second)
}
return eg.Wait()