miflora-mqtt-daemon icon indicating copy to clipboard operation
miflora-mqtt-daemon copied to clipboard

Logs in Daemon Mode

Open broyuken opened this issue 3 years ago β€’ 1 comments

Hello,

I have this running in daemon mode, but wanted to know how I could see logs in this mode since they aren't output to the console. I didn't see a log file in the /opt/miflora-mqtt-daemon directory

broyuken avatar May 16 '21 19:05 broyuken

Hey @broyuken, You can see some logging via sudo systemctl status miflora.service If you are interested in the full log you can write it to syslog or any other facility. You should get what you are asking for by uncommenting the two lines here:

https://github.com/ThomDietrich/miflora-mqtt-daemon/blob/75519a227c2d325f2bcc6726edbe4c8eeca5e86a/template.service#L14

ThomDietrich avatar May 27 '21 18:05 ThomDietrich