Merge pull request #857 from Miciah/Warning-to-Warningf
glog.Warning -> glog.Warningf
This commit is contained in:
commit
c6826504a5
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user