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 {
|
||||
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
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user