server: Use default logging configuration instead of zap production one
This fixes problem where logs json changes format of timestamp.
This commit is contained in:
@ -175,6 +175,7 @@ type EtcdProcessClusterConfig struct {
|
||||
|
||||
DiscoveryEndpoints []string // v3 discovery
|
||||
DiscoveryToken string
|
||||
LogLevel string
|
||||
}
|
||||
|
||||
// NewEtcdProcessCluster launches a new cluster from etcd processes, returning
|
||||
@ -336,6 +337,10 @@ func (cfg *EtcdProcessClusterConfig) EtcdServerProcessConfigs(tb testing.TB) []*
|
||||
args = append(args, "--discovery", cfg.Discovery)
|
||||
}
|
||||
|
||||
if cfg.LogLevel != "" {
|
||||
args = append(args, "--log-level", cfg.LogLevel)
|
||||
}
|
||||
|
||||
etcdCfgs[i] = &EtcdServerProcessConfig{
|
||||
lg: lg,
|
||||
ExecPath: cfg.ExecPath,
|
||||
|
Reference in New Issue
Block a user