This commit is contained in:
Sridhar Ratnakumar 2014-05-16 16:59:29 -07:00
parent 6cb4dc0ca8
commit 6dab63b3c0
1 changed files with 2 additions and 1 deletions

View File

@ -170,7 +170,7 @@ func (tail *Tail) reopen() error {
func (tail *Tail) readLine() ([]byte, error) { func (tail *Tail) readLine() ([]byte, error) {
line, isPrefix, err := tail.reader.ReadLine() line, isPrefix, err := tail.reader.ReadLine()
if err != nil { if err != nil {
return nil, err return line, err
} }
// If MaxLineSize is set, we don't have to join the parts (let // If MaxLineSize is set, we don't have to join the parts (let
@ -244,6 +244,7 @@ func (tail *Tail) tailFileSync() {
} }
} }
case io.EOF: case io.EOF:
// XXX: should `line` be returned at this point?
if !tail.Follow { if !tail.Follow {
return return
} }