Skip to content

Commit

Permalink
Test hclog logging with different levels
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Apr 23, 2024
1 parent b74c945 commit 2479a6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logging/hclog_adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ func TestNewHcLogAdapter_GetLevel(t *testing.T) {

hcLogAdapter := NewHcLogAdapter(&logger, "test")
hcLogAdapter.SetLevel(hclogLevel)
hcLogAdapter.With("key", "value").Log(
hclogLevel, "This is a trace message", "level", hcLogAdapter.GetLevel())
assert.Equal(t, hclogLevel, hcLogAdapter.GetLevel())

hcLogAdapter.SetLevel(hclog.Debug)
Expand Down

0 comments on commit 2479a6f

Please sign in to comment.