Adjust logger types (#3859)

This commit is contained in:
Anbraten
2024-07-01 19:03:14 +02:00
committed by GitHub
parent 2fa9432ef8
commit ba858d67cc
7 changed files with 23 additions and 12 deletions

View File

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