Merge pull request #857 from Miciah/Warning-to-Warningf

glog.Warning -> glog.Warningf
This commit is contained in:
Victor Marmol 2015-08-19 12:57:50 -07:00
commit c6826504a5
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ func (self *manager) Start() error {
} else { } else {
err = cpuLoadReader.Start() err = cpuLoadReader.Start()
if err != nil { if err != nil {
glog.Warning("Could not start cpu load stat collector: %s", err) glog.Warningf("Could not start cpu load stat collector: %s", err)
} else { } else {
self.loadReader = cpuLoadReader self.loadReader = cpuLoadReader
} }

View File

@ -392,7 +392,7 @@ func (c *PrometheusCollector) Collect(ch chan<- prometheus.Metric) {
containers, err := c.infoProvider.SubcontainersInfo("/", &info.ContainerInfoRequest{NumStats: 1}) containers, err := c.infoProvider.SubcontainersInfo("/", &info.ContainerInfoRequest{NumStats: 1})
if err != nil { if err != nil {
c.errors.Set(1) c.errors.Set(1)
glog.Warning("Couldn't get containers: %s", err) glog.Warningf("Couldn't get containers: %s", err)
return return
} }
for _, container := range containers { for _, container := range containers {