From 3cfc11c6d2fd4baee25d7ad0ca817b0685fe5b98 Mon Sep 17 00:00:00 2001 From: Martin Lindhe Date: Thu, 10 Aug 2017 03:36:28 +0200 Subject: [PATCH] ad: fix log call --- collector/ad.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/collector/ad.go b/collector/ad.go index 1118c0c1..182f90bf 100644 --- a/collector/ad.go +++ b/collector/ad.go @@ -3,9 +3,10 @@ package collector import ( + "log" + "github.com/StackExchange/wmi" "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/common/log" ) func init() { @@ -454,7 +455,7 @@ func NewADCollector() (Collector, error) { // to the provided prometheus Metric channel. func (c *ADCollector) Collect(ch chan<- prometheus.Metric) error { if desc, err := c.collect(ch); err != nil { - log.Errorf("[ERROR] failed collecting ad metrics:", desc, err) + log.Println("[ERROR] failed collecting ad metrics:", desc, err) return err } return nil