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

Read worker output using io.Read #100

Merged
merged 1 commit into from Nov 23, 2022
Merged

Read worker output using io.Read #100

merged 1 commit into from Nov 23, 2022

Conversation

subpop
Copy link
Collaborator

@subpop subpop commented Nov 22, 2022

Some workers output a lot of text to stderr and stdout. Rather than
scanning stderr and stdout into a buffer using a bufio.Scanner, read a
fixed number of bytes at a time. This will break lines of output from
the worker in the middle of words, making reading stdout in the logs
more difficult, but avoids the overly verbose workers from hitting the
bufio.ErrTooLong error.

Signed-off-by: Link Dupont link@sub-pop.net

Some workers output a lot of text to stderr and stdout. Rather than
scanning stderr and stdout into a buffer using a bufio.Scanner, read a
fixed number of bytes at a time. This will break lines of output from
the worker in the middle of words, making reading stdout in the logs
more difficult, but avoids the overly verbose workers from hitting the
bufio.ErrTooLong error.

Signed-off-by: Link Dupont <link@sub-pop.net>
@subpop subpop changed the base branch from main to yggdrasil-0.2 November 22, 2022 18:12
@subpop subpop merged commit fcdb239 into yggdrasil-0.2 Nov 23, 2022
@subpop subpop deleted the bufio-token branch November 23, 2022 15:24
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

2 participants