Lowering log level for frequent events.

Lowering all frequent normal logs to v=3. Kubelet runs by default on
debug of v=2 and we don't want to log these events in that case.
This commit is contained in:
Victor Marmol 2015-03-09 14:53:53 -07:00
parent b5e2f3788e
commit 54bc33dd2c
3 changed files with 4 additions and 4 deletions

View File

@ -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)
}
}

View File

@ -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 {

View File

@ -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
}