Switch logging from glog to github.com/prometheus/log.

This commit is contained in:
Julius Volz 2015-05-28 21:21:44 +02:00
commit e65bc868fc
13 changed files with 36 additions and 44 deletions

View file

@ -5,8 +5,8 @@ package collector
import (
"time"
"github.com/golang/glog"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
)
type timeCollector struct {
@ -31,7 +31,7 @@ func NewTimeCollector() (Collector, error) {
func (c *timeCollector) Update(ch chan<- prometheus.Metric) (err error) {
now := time.Now()
glog.V(1).Infof("Set time: %f", now.Unix())
log.Debugf("Set time: %f", now.Unix())
c.metric.Set(float64(now.Unix()))
c.metric.Collect(ch)
return err