Do not log container output in error log.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
64c719622a
commit
f2fa351a1f
@ -83,7 +83,7 @@ func redirectLogs(path string, rc io.ReadCloser, wc io.WriteCloser, stream Strea
|
||||
data := bytes.Join([][]byte{timestampBytes, streamBytes, lineBytes}, delimiterBytes)
|
||||
data = append(data, eol)
|
||||
if _, err := wc.Write(data); err != nil {
|
||||
glog.Errorf("Fail to write log line %q: %v", data, err)
|
||||
glog.Errorf("Fail to write %q log to log file %q: %v", stream, path, err)
|
||||
}
|
||||
// Continue on write error to drain the input.
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ write_files:
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
ExecStart=/home/cri-containerd/usr/local/bin/cri-containerd \
|
||||
--alsologtostderr --v=4 \
|
||||
--logtostderr --v=4 \
|
||||
--network-bin-dir=/home/cri-containerd/opt/cni/bin \
|
||||
--network-conf-dir=/home/cri-containerd/etc/cni/net.d
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user