Skip to content
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

Multiline-write results in unexpected behavior #2

Open
petski opened this issue May 30, 2013 · 0 comments
Open

Multiline-write results in unexpected behavior #2

petski opened this issue May 30, 2013 · 0 comments

Comments

@petski
Copy link

petski commented May 30, 2013

An issue reveals itself if the process writing to the tail'ed logfile writes more than one line in a write().

To reproduce:

$ echo 1 >> /tmp/myfile
$ echo 2 >> /tmp/myfile
$ echo -e "3\n4" >> /tmp/myfile
$ echo 5 >> /tmp/myfile

I fixed this by patching line 37

37              #print fh.readline().rstrip()
38              for line in fh.readlines():
39                  print line.rstrip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant