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

Tee logging stdbuf side effect #38

Closed
DavidPL1 opened this issue Dec 28, 2018 · 0 comments
Closed

Tee logging stdbuf side effect #38

DavidPL1 opened this issue Dec 28, 2018 · 0 comments
Labels
CORE help wanted Extra attention is needed Priority: Low Type: Enhancement New feature or request

Comments

@DavidPL1
Copy link
Collaborator

because tee redirects stdout to a file, the stream thinks its output is not displayed on a terminal anymore, which changes its line buffering from linebuffering to EOF (I think). This defeats the purpose of using tee to have a live updated logger output in a file.
Putting stdbuf -oL -eL resolves this issue, because it forces stdout and stderr to use linebuffering again, but this needs to be done by the user. Maybe I can find a way to include this automatically in the start command.

@DavidPL1 DavidPL1 added the help wanted Extra attention is needed label Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CORE help wanted Extra attention is needed Priority: Low Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant