diff --git a/consul/log.go b/consul/log.go index e0b63a4..810660e 100644 --- a/consul/log.go +++ b/consul/log.go @@ -87,6 +87,10 @@ func (a *HCLogAdapter) SetLevel(hclog.Level) { // we don't currently. } +func (a *HCLogAdapter) GetLevel() hclog.Level { + return hclog.Level(a.log.WithFields(logrus.Fields{}).Level) +} + func (a *HCLogAdapter) With(args ...interface{}) hclog.Logger { e := a.CreateEntry(args) return &HCLogAdapter{ diff --git a/docker-compose.yaml b/docker-compose.yaml index c2c6ee6..486b12a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,6 +13,7 @@ services: -initial-cluster etcd0=http://0.0.0.0:2381 -initial-cluster-state new -enable-v2=false + platform: linux/amd64 ports: - 22379:22379