-
Notifications
You must be signed in to change notification settings - Fork 177
Skip repeated log entries #937
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
Skip repeated log entries #937
Conversation
6de94c4
to
189b4ba
Compare
This helps with log flooding. Successive repeated log messages will be skipped and counted, the count will be output when a different message is logged. A new option of 'keep_repeats' has been added to VIRCADIA_LOG_OPTIONS to disable this.
189b4ba
to
aab5b22
Compare
The following links are available: build (ubuntu-18.04, android) |
The following links are available: build (ubuntu-18.04, full)
build (windows-latest, full) |
The following links are available:
build (macOS-latest, full) build (windows-latest, full) |
Is there a specific type of log message that I can trigger in order to test this? I used it for a few minutes but didn't really notice anything different even when I did see what looked like "repeated" log entries. |
#474 was implemented specifically to address missing joint log spam, that would be redundant now right? |
@digisomni Use Developer/Audio/Stats on Linux. If you don't have a Verdana font, you'll get around 150 messages per second @SilverfishVR Possibly, not. This PR only happens the case when a message is repeated right after itself. From what I remember from looking at the other mechanism it's subsystem specific and may work better for that case because for instance you can avoid repeats within a subsystem even if something else logs stuff in between. |
In LogHandler.cpp on line 142 it appears there is functionality for this sort of thing already. Can this be updated to work with/improve that functionality? I found this because I noticed my log was blocking repeated messages from another part of the codebase already. |
Tested on Mac, there were no font issues so I could not reproduce and trigger this. |
This helps with log flooding. Successive repeated log messages will be skipped and counted, the count will be output when a different message is logged.
A new option of 'keep_repeats' has been added to
VIRCADIA_LOG_OPTIONS
to disable this.Fixes #934