Browse Source

etcd: disable excessive logging when using embedded etcd

master
Andras Banki-Horvath 3 years ago
parent
commit
6dc64f7d2f
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8
  1. 3
      kvdb/etcd/embed.go

3
kvdb/etcd/embed.go

@ -69,6 +69,9 @@ func NewEmbeddedEtcdInstance(path string, clientPort, peerPort uint16) (
// To ensure that we can submit large transactions.
cfg.MaxTxnOps = 8192
cfg.MaxRequestBytes = 16384 * 1024
cfg.Debug = false
cfg.Logger = "zap"
cfg.LogLevel = "error"
// Listen on random free ports if no ports were specified.
if clientPort == 0 {

Loading…
Cancel
Save