Read long log lines from file storage correctly (#4048)

This commit is contained in:
hg
2024-08-26 01:53:04 +05:00
committed by GitHub
parent 3fc138d5d2
commit 37d1ca8bc1
4 changed files with 18 additions and 10 deletions

View File

@@ -281,8 +281,7 @@ func convertPathForWindows(path string) string {
return filepath.ToSlash(path)
}
const maxLogLineLength = 1024 * 1024 // 1mb
var defaultLogger = pipeline.Logger(func(step *backend_types.Step, rc io.ReadCloser) error {
logWriter := NewLineWriter(step.Name, step.UUID)
return pipelineLog.CopyLineByLine(logWriter, rc, maxLogLineLength)
return pipelineLog.CopyLineByLine(logWriter, rc, pipeline.MaxLogLineLength)
})