From eec549c09a2a93e68358ba42895bfc10ad34baa2 Mon Sep 17 00:00:00 2001 From: jackmarsh Date: Thu, 9 Feb 2023 01:00:27 +0000 Subject: [PATCH] logging --- exporter/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/exporter.go b/exporter/exporter.go index 42ab91d..2e33ab9 100644 --- a/exporter/exporter.go +++ b/exporter/exporter.go @@ -101,7 +101,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) { } if err := group.Wait(); err != nil { up = 0 - log.Error("collecting: %w", err) + fmt.Println(fmt.Sprintf("collecting: %w", err)) } ch <- prometheus.MustNewConstMetric(e.up.Desc(), prometheus.GaugeValue, float64(up)) ch <- e.totalScrapes