From 5016a2b67965593d36bc50d436480ec3d0778b70 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Tue, 23 Apr 2024 23:24:59 +0200 Subject: [PATCH] Test hclog logging with different levels --- logging/hclog_adapter_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/logging/hclog_adapter_test.go b/logging/hclog_adapter_test.go index 731d08b0..c734b9aa 100644 --- a/logging/hclog_adapter_test.go +++ b/logging/hclog_adapter_test.go @@ -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)