glog.Warning -> glog.Warningf

Fix two places where glog.Warning is used with a formatted string.
This commit is contained in:
Miciah Masters 2015-08-19 15:46:54 -04:00 committed by Miciah Dashiel Butler Masters
parent f6d53e4e52
commit 003125975c
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ func (self *manager) Start() error {
} else {
err = cpuLoadReader.Start()
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 {
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})
if err != nil {
c.errors.Set(1)
glog.Warning("Couldn't get containers: %s", err)
glog.Warningf("Couldn't get containers: %s", err)
return
}
for _, container := range containers {