Juul / tail-stream

Like `tail -f` but a stream. Like fs.createReadStream but keeps reading as the file grows.
Other
33 stars 13 forks source link

uncaught error EBADF #15

Open hftom opened 7 years ago

hftom commented 7 years ago

Hi,

i'm facing this issue with tail-stream when the log file gets new data after a long time whithout changes. In this case (and with {onMove: 'stay', detectTruncate: true, onTruncate: 'reset', endOnError: false}), tail-stream re-reads the file from its beginning. How could i avoid this and tell tail-stream to reopen and continue reading from the previous position ?

Thanx.

Juul commented 7 years ago

Hi. Could you tell me the operating system and node version?

hftom commented 7 years ago

This is on OSX Sierra with node 4.4.7