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:
parent
b5e2f3788e
commit
54bc33dd2c
@ -197,7 +197,7 @@ func (c *containerData) housekeeping() {
|
|||||||
// Log if housekeeping took too long.
|
// Log if housekeeping took too long.
|
||||||
duration := time.Since(start)
|
duration := time.Since(start)
|
||||||
if duration >= longHousekeeping {
|
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() {
|
if !lastSample.Timestamp.IsZero() {
|
||||||
cpuRate, err := getCpuRate(*stat, lastSample)
|
cpuRate, err := getCpuRate(*stat, lastSample)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(2).Infof("Skipping sample, %v", err)
|
glog.V(3).Infof("Skipping sample, %v", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
glog.V(2).Infof("Adding cpu rate sample : %d", cpuRate)
|
glog.V(3).Infof("Adding cpu rate sample : %d", cpuRate)
|
||||||
cpu.AddSample(cpuRate)
|
cpu.AddSample(cpuRate)
|
||||||
memory.AddSample(stat.Memory)
|
memory.AddSample(stat.Memory)
|
||||||
} else {
|
} else {
|
||||||
|
@ -73,6 +73,6 @@ func (self *NetlinkReader) GetCpuLoad(name string, path string) (info.LoadStats,
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return info.LoadStats{}, err
|
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
|
return stats, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user