etcd: Remove the capnslog stuff and switch to zap
Unfortunately, this doesn't give us a way to pass in our own logger function, and afaict by reading the source, it's not possible because the necessary methods are private. In any case, this is left as a future exercise.
This commit is contained in:
@@ -145,6 +145,9 @@ func (obj *EmbdEtcd) runServer(newCluster bool, peerURLsMap etcdtypes.URLsMap) (
|
||||
cfg.ACUrls = aCUrls
|
||||
cfg.StrictReconfigCheck = false // XXX: workaround https://github.com/etcd-io/etcd/issues/6305
|
||||
cfg.MaxTxnOps = DefaultMaxTxnOps
|
||||
cfg.Logger = "zap"
|
||||
//cfg.LogOutputs = []string{} // FIXME: add a way to pass in our logf func
|
||||
cfg.LogLevel = "error" // keep things quieter for now
|
||||
|
||||
cfg.InitialCluster = initialPeerURLsMap.String() // including myself!
|
||||
if newCluster {
|
||||
|
||||
Reference in New Issue
Block a user