-
Notifications
You must be signed in to change notification settings - Fork 12
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
Lines are getting skipped when reading multiple lines within the same millisecond #110
Comments
Hmm very interesting! Thanks for reporting it. I'll see if I can recreate it. Is this on Ubuntu? That magenta terminal background looks familiar. |
yup you got it, ubuntu 22.04 |
Quick update: I have been able to recreate this. Surprisingly, if I put in breakpoints at key points in the app, it behaves as expected. This must be a speed/performance problem. I'll keep digging. I also thought switching to a polling tailing method (e.g. check the file every 500ms for new log lines) instead of a filesystem alert tailing method (e.g. wait for the filesystem to tell me the log file was written to) would fix it. But it didn't. More to come. |
Seems to be only happening when lines are written out all at the same time or under a millisecond. I still want to fix this, but it shouldn't affect most people. |
I'm using logstation on a file that I'm printing to from a Python script, and I'm noticing lines being skipped when the Python print call contains newlines (
\n
). Was able to reproduce with a small example script, the only config change was specifying the file.When watching
test.log
I getThe text was updated successfully, but these errors were encountered: