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

Logging to stdout not flushing when log_dest stdout added to config file #2749

Closed
rharder opened this issue Feb 9, 2023 · 1 comment
Closed

Comments

@rharder
Copy link

rharder commented Feb 9, 2023

Problem: When log_dest stdout is specified in the mosquitto.conf file, the stdout logging (via Docker) does not flush to the console. Not until I shutdown mosquitto do all the log messages suddenly dump to the screen.

If I don't specify any logging in the config file, then it flushes to stdout just fine. It is when I specify stdout that it no longer works. Actually I get only one log entry, the first one: "1675958250: mosquitto version 2.0.15 starting". If I also add a log file to the config file, the stdout output also does not work.

I am using moquitto in docker on Windows with WSL2.

-Rob

@yusefmaali
Copy link

stdout seems to be buffered.
Give a check here: #2354

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants