mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
remove zap
This commit is contained in:
parent
9a0facaaa3
commit
4afaaa5e25
1 changed files with 3 additions and 7 deletions
|
|
@ -103,9 +103,9 @@ func (e *Etcd) Close() error {
|
|||
if e.heartbeatCancel != nil {
|
||||
e.heartbeatCancel()
|
||||
}
|
||||
// e.e.Server.Stop()
|
||||
// e.e.Close()
|
||||
// <-e.e.Server.StopNotify()
|
||||
e.e.Server.Stop()
|
||||
e.e.Close()
|
||||
<-e.e.Server.StopNotify()
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
@ -122,10 +122,6 @@ func parseOptions(opt Options) *embed.Config {
|
|||
cfg.LPUrls = types.MustNewURLs([]string{opt.LPeerURL})
|
||||
cfg.APUrls = types.MustNewURLs([]string{opt.APeerURL})
|
||||
|
||||
cfg.Logger = "zap"
|
||||
cfg.ZapLoggerBuilder = func(*embed.Config) error {
|
||||
return nil
|
||||
}
|
||||
if opt.InitCluster != "" {
|
||||
cfg.InitialCluster = opt.InitCluster
|
||||
cfg.ClusterState = embed.ClusterStateFlagNew
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue