-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is this a bug? #9
Comments
Wouldn't it just wait till a new line is flushed as implemented? |
This appears to fail in the way that jl45621 suggests. An example that triggers the problem. Writer: Reader: def process_line(line): fin = open("/tmp/log", "r") If this were working correctly the reader should never yield output. However it does because the tail.follow(0.1) yields partial lines that are not line terminated. |
The essential hack using this package might be
|
hey, great util. thanks. i notice that in follow(self,delay=1.0) there is the following code:
but if this is NOT true, then that means we have a line that does not end in a line_terminator. this happens when you've reached the end of a file that you are tailing and the producer of the file is flushing midway through a line.
I would imagine you need to do the following:
*My b if this format is annoying. I'm far too lazy to create pull requests and I have no idea how markdown works. 5min is about all the time I have committed to this bug report. Peace
The text was updated successfully, but these errors were encountered: