Merge pull request #368 from Random-Liu/not-log-output

Do not log container output in error log.
This commit is contained in:
Lantao Liu
2017-10-28 05:50:14 +02:00
committed by GitHub
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.
}