diff --git a/logging/hclog_adapter_test.go b/logging/hclog_adapter_test.go index 731d08b0..7b6ff0e3 100644 --- a/logging/hclog_adapter_test.go +++ b/logging/hclog_adapter_test.go @@ -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)