From e7e2c84928259b3612dd4d933fedada808034049 Mon Sep 17 00:00:00 2001 From: Josh Powers Date: Mon, 18 Sep 2023 09:08:38 -0600 Subject: [PATCH] add test logger to wmi --- plugins/inputs/win_wmi/win_wmi_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/inputs/win_wmi/win_wmi_test.go b/plugins/inputs/win_wmi/win_wmi_test.go index 175268aa45db6..5db75e7b68bd8 100644 --- a/plugins/inputs/win_wmi/win_wmi_test.go +++ b/plugins/inputs/win_wmi/win_wmi_test.go @@ -24,6 +24,7 @@ var testQuery = Query{ //nolint:gocritic // sprintfQuotedString - "%s" used by purpose, string escaping is done by special function Filter: fmt.Sprintf(`NOT Name LIKE "\\\\?\\%%" AND Name LIKE "%s"`, regexp.QuoteMeta(sysDrive)), TagPropertiesInclude: []string{"Name"}, + Logger: new(testutil.Logger) tagFilter: nil, // this is filled in by CompileInputs() }