-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
logging to stdout is buffered when no tty is present #2354
Comments
I can confirm this issue, had to go back to |
6 tasks
Still present in mosquitto 2.0.15. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Running the latest mosquitto docker container (eclipse-mosquitto:2.0.12) I noticed that logging to stdout is buffered when no tty is present (running docker without
-it
).The problem can be observed using this config file:
und running this command:
This difference in the two timestamps shows that the output is buffered and only flushed after some time or bytes are accumulated.
This behaviour can't be reproduced when logging to
stderr
.Update:
I can reproduce the issue using the image
eclipse-mosquitto:1.6.11
but not witheclipse-mosquitto:1.6.10
so it looks like this regression was introduced with the 1.6.11 release.The text was updated successfully, but these errors were encountered: