Mosquitto crash when log_dest stdout added

Hello, I’m new to Mosquitto. I’ve spent the better part of the last three days reading instructions and experimenting trying to learn how it works. I’m using a Tasmota 4 channel relay for learning as I thought it would be as easy as it gets. My main goal to is to control my 3d printer on a LAN isolated from the internet. I want to be able to control all the basic functions from this PC, (Windows 10).

This afternoon I got almost everything I need working. I could bring up four windows, one for each channel, that would log “on” or “off” when I clicked toggle or queried the channel. Now I need to get that data back to my script.

I started by trying to write the data to a file but imeadiately ran into a problem. When I add log_“dest stdout” to the config file Mosquitto won’t run, it crashes on startup every time. I can “set log_dest stderr” but not “log_dest stdout”.

Hello,

You’re quite right this is a bug, it’s specific to Windows and will be fixed in the next release. In the meantime if you stick to stderr or file output you should be fine.

Thanks for taking the time to report this!

Regards,

Roger

Glad I could help, although I didn’t expect it to be a bug. I thought it would be user error, like it normally is.