Skip to content

Commit

Permalink
Merge pull request #179 from mailgun/kbundgaard/add-getlevel
Browse files Browse the repository at this point in the history
BDF-1252: Add GetLevel
  • Loading branch information
kbundgaard authored Sep 25, 2023
2 parents d52ca92 + 5980dd1 commit 8ac7bb0
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 8ac7bb0

Please sign in to comment.