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

disable async logging #888

Merged
merged 2 commits into from
Oct 7, 2022
Merged

disable async logging #888

merged 2 commits into from
Oct 7, 2022

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented Oct 7, 2022

async logging was recently introduced in #844

unfortunately nothing is calling Close() on diode.Writer, which means buffer is not being flushed on process termination and causes log messages to get lost.

I propose disabling this until we come up with a solution that guarantees no log messages are lost on process termination.

Note: I also upgraded to go 1.19.2 to fix some vulns detected by govulncheck

unfortunately nothing is calling Close()
on diode.Writer, which means that nothing
is flushing out the buffer when the process
terminates, and log message are lost on
process termination
@vroldanbet vroldanbet requested a review from a team October 7, 2022 13:38
@github-actions github-actions bot added area/CLI Affects the command line area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Oct 7, 2022
Copy link
Contributor

@ecordell ecordell left a comment

Choose a reason for hiding this comment

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

LGTM

@vroldanbet vroldanbet enabled auto-merge October 7, 2022 14:03
@vroldanbet vroldanbet merged commit c777d29 into main Oct 7, 2022
@vroldanbet vroldanbet deleted the disable-async-logging branch October 7, 2022 14:11
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2022
@vroldanbet vroldanbet self-assigned this Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants