-
Notifications
You must be signed in to change notification settings - Fork 180
fix(logger): infinite loop on log buffer when item size is max bytes #4741
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
fix(logger): infinite loop on log buffer when item size is max bytes #4741
Conversation
|
Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need. |
|
Thank you for the PR, we'll review it soon. |
dreamorosi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set @svozza as reviewer
facf526 to
83e904d
Compare
|
Nice work @fidelisojeah! I only had two very minor comments. |
83e904d to
2c5e55b
Compare
|
|
Great stuff @fidelisojeah , merging now! |
|
Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience! |



Summary
Changes
This PR fixes a bug where an infinite loop occurs when a new buffered log's byte size is equal to the maxBytes size (
logBufferOptions.maxBytes) specified while log buffering is enabled (logBufferOptions.enabled = true).See issue for more details.
Issue number: closes #4737
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.