Merge pull request #567 from vmarmol/less-log
Lowering log level for frequent events.
This commit is contained in:
commit
24ab222ae0
@ -197,7 +197,7 @@ func (c *containerData) housekeeping() {
|
||||
// Log if housekeeping took too long.
|
||||
duration := time.Since(start)
|
||||
if duration >= longHousekeeping {
|
||||
glog.V(2).Infof("[%s] Housekeeping took %s", c.info.Name, duration)
|
||||
glog.V(3).Infof("[%s] Housekeeping took %s", c.info.Name, duration)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -172,10 +172,10 @@ func GetMinutePercentiles(stats []*secondSample) info.Usage {
|
||||
if !lastSample.Timestamp.IsZero() {
|
||||
cpuRate, err := getCpuRate(*stat, lastSample)
|
||||
if err != nil {
|
||||
glog.V(2).Infof("Skipping sample, %v", err)
|
||||
glog.V(3).Infof("Skipping sample, %v", err)
|
||||
continue
|
||||
}
|
||||
glog.V(2).Infof("Adding cpu rate sample : %d", cpuRate)
|
||||
glog.V(3).Infof("Adding cpu rate sample : %d", cpuRate)
|
||||
cpu.AddSample(cpuRate)
|
||||
memory.AddSample(stat.Memory)
|
||||
} else {
|
||||
|
@ -73,6 +73,6 @@ func (self *NetlinkReader) GetCpuLoad(name string, path string) (info.LoadStats,
|
||||
if err != nil {
|
||||
return info.LoadStats{}, err
|
||||
}
|
||||
glog.V(1).Infof("Task stats for %q: %+v", path, stats)
|
||||
glog.V(3).Infof("Task stats for %q: %+v", path, stats)
|
||||
return stats, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user