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
Tailviewer may display the same log line multiple times in rare cases #221
Comments
This problem currently only occurs when all of the following conditions are met:
It is a very rare occurrence so far and has been reported by one colleague so far. The problem itself is caused by a bug in the |
This bug was caused by two things: - MultiLineLogFile which incorrectly classified two successive lines to belong to the same log entry because the second line didn't contain a log level (whereas the first one did), EVEN though both lines had a timestamp - FilteredLogFile which built upon the previous error and then duplicated lines belonging to this multiline log entry
Fixed with v0.9.0 |
I have seen this behavior today in release 1.00 RC1. All the criteria from above seem to be given in my case. I have an application that writes log4net data to a text file. The Tailviewer is used to visualize the content with an active filter enabled. In the duplicated lines even the line number is duplicated. |
Current behaviour
Under rare circumstances, see below, tailviewer will display certain lines of a log file multiple times in succession. This can appear in various patterns, for example (N, N, N+1, N+2, etc..) or (N, N+1, N, N+1, N+2, etc...).
Expected behaviour
Tailviewer should not artificially duplicate lines and display them as they are in the origin log file.
Steps to reproduce the problem
Workaround
Whenever this problem occurs, changing any filter of the log file will cause the problem to disappear. For example simply toggling (enabling/disabling or vice versa) any non-empty filter will make this problem go away.
The text was updated successfully, but these errors were encountered: