mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #10646 from yujuhong/reduce_noise
Kubelet: stop logging "Error on reading termination-log..." messages
This commit is contained in:
commit
ef41ceb3e4
@ -313,7 +313,7 @@ func (dm *DockerManager) inspectContainer(dockerID, containerName, tPath string)
|
|||||||
if found {
|
if found {
|
||||||
data, err := ioutil.ReadFile(path)
|
data, err := ioutil.ReadFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Error on reading termination-log %s: %v", path, err)
|
result.status.State.Terminated.Message = fmt.Sprintf("Error on reading termination-log %s: %v", path, err)
|
||||||
} else {
|
} else {
|
||||||
result.status.State.Terminated.Message = string(data)
|
result.status.State.Terminated.Message = string(data)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user