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 5016a2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions logging/hclog_adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func TestNewHcLogAdapter_GetLevel(t *testing.T) {

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

hcLogAdapter.SetLevel(hclog.Debug)
Expand Down

0 comments on commit 5016a2b

Please sign in to comment.