mirror of https://github.com/sirupsen/logrus.git
Merge pull request #1 from ashmckenzie/ashmckenzie/fix-writer-scanner
Scan text in 64KB chunks
This commit is contained in:
commit
105e63f86c
|
@ -75,7 +75,8 @@ func (entry *Entry) writerScanner(reader *io.PipeReader, printFunc func(args ...
|
||||||
if len(data) > chunkSize {
|
if len(data) > chunkSize {
|
||||||
return chunkSize, data[:chunkSize], nil
|
return chunkSize, data[:chunkSize], nil
|
||||||
}
|
}
|
||||||
return 0, nil, nil
|
|
||||||
|
return len(data), data, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//Use the custom split function to split the input
|
//Use the custom split function to split the input
|
||||||
|
|
Loading…
Reference in New Issue