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

Logs in Daemon Mode #139

Open
broyuken opened this issue May 16, 2021 · 2 comments
Open

Logs in Daemon Mode #139

broyuken opened this issue May 16, 2021 · 2 comments

Comments

@broyuken
Copy link

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

@ThomDietrich
Copy link
Owner

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:

#SyslogIdentifier=miflora

@thicknesss
Copy link

In the newer versions of Openhabian (based on Debian 12) syslog is depreciated and journal is standard.
This brings up this warning:
/etc/systemd/system/miflora.service:13: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants