*: set zap as default logger, remove capnslog

Set zap as default logger. Remove capnslog and deprecated logging
flags.
This commit is contained in:
jingyih
2020-02-03 07:35:47 -08:00
parent 53f15caf73
commit 725e09023a
11 changed files with 18 additions and 148 deletions

View File

@ -58,7 +58,6 @@ func TestEmbedEtcd(t *testing.T) {
tests[i].cfg = *embed.NewConfig()
tests[i].cfg.Logger = "zap"
tests[i].cfg.LogOutputs = []string{"/dev/null"}
tests[i].cfg.Debug = false
}
tests[0].cfg.Durl = "abc"
@ -184,7 +183,6 @@ func newEmbedURLs(secure bool, n int) (urls []url.URL) {
func setupEmbedCfg(cfg *embed.Config, curls []url.URL, purls []url.URL) {
cfg.Logger = "zap"
cfg.LogOutputs = []string{"/dev/null"}
cfg.Debug = false
cfg.ClusterState = "new"
cfg.LCUrls, cfg.ACUrls = curls, curls