Skip to content

Tee logging stdbuf side effect #38

@DavidPL1

Description

@DavidPL1

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions