From c0b2ce6bd8c32bba218415513c9e0ead3095c840 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Sun, 25 Feb 2018 00:39:06 +1100 Subject: [PATCH] Fix go vet error --- phpfpm/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpfpm/exporter.go b/phpfpm/exporter.go index b4abbf6..69af823 100644 --- a/phpfpm/exporter.go +++ b/phpfpm/exporter.go @@ -165,7 +165,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) { if pool.ScrapeError != nil { ch <- prometheus.MustNewConstMetric(e.up, prometheus.GaugeValue, 0, pool.Name) - log.Error("Error scraping PHP-FPM: %v", pool.ScrapeError) + log.Errorf("Error scraping PHP-FPM: %v", pool.ScrapeError) continue }