From b169b015680e68d265d14a2771ba240d702037c5 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Mon, 28 Mar 2022 09:06:19 -0700 Subject: [PATCH] fix: update vsphere info message to debug (#10903) This message is very verbose and causes a lot of extra messages to get printed out as-is. Having it can be helpful in debugging when a metric does not show up, but it is not useful for general usage. This changes the message to only show up with debug enabled. Fixes: #10350 --- plugins/inputs/vsphere/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/vsphere/endpoint.go b/plugins/inputs/vsphere/endpoint.go index b0aab7dfd..8e99b4483 100644 --- a/plugins/inputs/vsphere/endpoint.go +++ b/plugins/inputs/vsphere/endpoint.go @@ -891,7 +891,7 @@ func (e *Endpoint) chunkify(ctx context.Context, res *resourceKind, now time.Tim // Determine time of last successful collection metricName := e.getMetricNameForID(metric.CounterId) if metricName == "" { - e.log.Infof("Unable to find metric name for id %d. Skipping!", metric.CounterId) + e.log.Debugf("Unable to find metric name for id %d. Skipping!", metric.CounterId) continue } start, ok := e.hwMarks.Get(obj.ref.Value, metricName)