Fix go vet error

This commit is contained in:
Enrico Stahn 2018-02-25 00:39:06 +11:00
parent 62276d310f
commit c0b2ce6bd8
No known key found for this signature in database
GPG key ID: 5263621C269A50DE

View file

@ -165,7 +165,7 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
if pool.ScrapeError != nil { if pool.ScrapeError != nil {
ch <- prometheus.MustNewConstMetric(e.up, prometheus.GaugeValue, 0, pool.Name) 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 continue
} }