From 1258703f23e869a22c1c9d8c2a2acfebd1db9249 Mon Sep 17 00:00:00 2001 From: marek-vrana <30291176+marek-vrana@users.noreply.github.com> Date: Thu, 14 Mar 2019 11:42:34 +0100 Subject: [PATCH] msmq - incorrect condition to log a warning A warning is logged to event viewer when a where clause is provided - that should, in fact, lower down the results, so the condition had to be inverted. --- collector/msmq.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/msmq.go b/collector/msmq.go index 0b631be2..0498c83a 100644 --- a/collector/msmq.go +++ b/collector/msmq.go @@ -33,7 +33,7 @@ type Win32_PerfRawData_MSMQ_MSMQQueueCollector struct { func NewMSMQCollector() (Collector, error) { const subsystem = "msmq" - if *msmqWhereClause != "" { + if *msmqWhereClause == "" { log.Warn("No where-clause specified for msmq collector. This will generate a very large number of metrics!") }