-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multiline: respect emitter paused status
When the multiline plugin tries to send logs to the emitter, it never used to check if the emitter was paused or not. The input chunk appending routines would subsequently reject the log when it got to the point of checking if the current input plugin is paused. This would return -1 and cause the esoteric "error registering chunk for tag" message to be spammed constantly while the emitter is paused. This PR adds a check before appending logs to the emitter to see if it is currently paused. If it is, then the log will not be sent to the emitter and will be dropped (just as it would have been if it went through the rest of the chunk appending procedure, but cuts out all the extra steps). I have an automatic whitespace trimmer that runs on save, so there's lots of trailing whitespace deleted too sorry lol Signed-off-by: braydonk <braydonk@google.com>
- Loading branch information
Showing
2 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters