diff --git a/pkg/protocols/common/utils/vardump/dump.go b/pkg/protocols/common/utils/vardump/dump.go index 82de85e67b..c60dadf542 100644 --- a/pkg/protocols/common/utils/vardump/dump.go +++ b/pkg/protocols/common/utils/vardump/dump.go @@ -13,10 +13,6 @@ type variables = map[string]any // DumpVariables dumps the variables in a pretty format func DumpVariables(data variables) string { - if !EnableVarDump { - return "" - } - d := godump.Dumper{ Indentation: " ", HidePrivateFields: false, diff --git a/pkg/protocols/common/utils/vardump/dump_test.go b/pkg/protocols/common/utils/vardump/dump_test.go index 9929fa5318..a436226aa8 100644 --- a/pkg/protocols/common/utils/vardump/dump_test.go +++ b/pkg/protocols/common/utils/vardump/dump_test.go @@ -34,10 +34,6 @@ func TestDumpVariables(t *testing.T) { assert.Contains(t, result, "b") assert.Contains(t, result, "c") - // Test with EnableVarDump set to false - EnableVarDump = false - result = DumpVariables(testVars) - assert.Empty(t, result) } func TestProcess(t *testing.T) {