Skip to content
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

CBG-758: Reliably flush to console on Fatalf #4537

Merged
merged 3 commits into from Mar 19, 2020
Merged

CBG-758: Reliably flush to console on Fatalf #4537

merged 3 commits into from Mar 19, 2020

Conversation

JRascagneres
Copy link
Member

Appears that the issue of unreliable flushing to console was due to the fact that when adding a message to the buffer the data may not be sent through the channel before a flush is run.
Solution is to add a wait group to ensure data sent through the channel is successfully appended before flushing.

@coveralls
Copy link

coveralls commented Mar 19, 2020

Coverage Status

Coverage decreased (-0.002%) to 61.847% when pulling 0c0ff06 on CBG-758 into 7554e3a on master.

base/logger.go Outdated Show resolved Hide resolved
base/logger.go Outdated Show resolved Hide resolved
@JRascagneres JRascagneres requested a review from bbrks March 19, 2020 17:13
Copy link
Member

@bbrks bbrks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. No changes seen in logging benchmark after forcing collation on locally.

@bbrks bbrks merged commit 962ff96 into master Mar 19, 2020
@bbrks bbrks deleted the CBG-758 branch March 19, 2020 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants