Stdout seems to be buffered in Docker containers #250

Closed
opened 2022-06-16 18:45:06 +02:00 by Jef Roosens · 1 comment

After merging #248, the Docker container seems to be buffering logs until a sufficient number of lines are present. Then, they're printed all at once. I have no idea what caused this, but this should not be how it is. It should output each log line the moment it receives them.

After merging #248, the Docker container seems to be buffering logs until a sufficient number of lines are present. Then, they're printed all at once. I have no idea what caused this, but this should not be how it is. It should output each log line the moment it receives them.
Jef Roosens added this to the 0.4.0 milestone 2022-06-16 18:45:06 +02:00
Jef Roosens added the
bug
label 2022-06-16 18:45:06 +02:00
Jef Roosens removed this from the 0.4.0 milestone 2022-10-01 16:56:53 +02:00

I'm pretty sure this can be resolved by using setbuf(stdout, NULL); to disable buffering for stdout (& stderr as well).

I'm pretty sure this can be resolved by using `setbuf(stdout, NULL);` to disable buffering for stdout (& stderr as well).
Jef Roosens added this to the 0.5.0 milestone 2022-12-14 19:14:10 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vieter-v/vieter#250
There is no content yet.