Do not log container output in error log.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu
2017-10-28 02:16:43 +00:00
parent 64c719622a
commit f2fa351a1f
2 changed files with 2 additions and 2 deletions

View File

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