mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Merge pull request #10646 from yujuhong/reduce_noise
Kubelet: stop logging "Error on reading termination-log..." messages
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user