parent
074c77ccbf
commit
d2a44130c2
1
tail.go
1
tail.go
|
@ -312,6 +312,7 @@ func (tail *Tail) waitForChanges() error {
|
||||||
|
|
||||||
func (tail *Tail) newReader() *bufio.Reader {
|
func (tail *Tail) newReader() *bufio.Reader {
|
||||||
if tail.MaxLineSize > 0 {
|
if tail.MaxLineSize > 0 {
|
||||||
|
// add 2 to account for newline characters
|
||||||
return bufio.NewReaderSize(tail.file, tail.MaxLineSize+2)
|
return bufio.NewReaderSize(tail.file, tail.MaxLineSize+2)
|
||||||
} else {
|
} else {
|
||||||
return bufio.NewReader(tail.file)
|
return bufio.NewReader(tail.file)
|
||||||
|
|
Loading…
Reference in New Issue