Skip to content

Commit

Permalink
BDF-1252: Add GetLevel to address `*HCLogAdapter does not implement h…
Browse files Browse the repository at this point in the history
…clog.Logger (missing method GetLevel)`
  • Loading branch information
kbundgaard committed Sep 25, 2023
1 parent d52ca92 commit 5980dd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consul/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5980dd1

Please sign in to comment.