nebulous / infinitude

Open control of Carrier/Bryant thermostats
MIT License
224 stars 50 forks source link

Repeated messages in Syslog - Question #175

Closed greggitter closed 1 year ago

greggitter commented 1 year ago

Infinitude has been working well, integrated with HA and today I happened to check the syslog and noticed these messages repeating every 1 minute.

Jun 26 15:19:49 ct-Other infinitude[157]: [2023-06-26 15:19:49.47739] [157] [info] systems-1721W00xxxx-status cached or passthru disabled
Jun 26 15:19:49 ct-Other infinitude[157]: [2023-06-26 15:19:49.47780] [157] [info] /systems/1721W00xxxx/status
Jun 26 15:19:49 ct-Other infinitude[157]: [2023-06-26 15:19:49.48230] [157] [info] Saving status

What are these messages and can it be fixed to resolve the messages or suppressed? How? Much appreciated!

Thanks!

nebulous commented 1 year ago

sure. those messages are at debug level [info] so there's nothing really broken that needs to be "fixed" but you can adjust your logging settings to a different level with environment variable LOGLEVEL. The available levels are from most-to-least verbose: trace, debug, info, warn, error and fatal

greggitter commented 1 year ago

Ah...OK makes sense. I tried adding the environment variable to the service line in the systemd config but it errors out (I'm using native, not docker). Tried these and none work...fails to start.

ExecStart=/opt/infinitude/infinitude daemon -m production -e LOGLEVEL error -l "http://:3000" &>/dev/null &

and....

ExecStart=/opt/infinitude/infinitude daemon -m production -e LOGLEVEL=error -l "http://:3000" &>/dev/null &

and....

ExecStart=/opt/infinitude/infinitude daemon -m production -l "http://:3000" &>/dev/null & -e LOGLEVEL error

In the meantime I commented out all the log lines in the source...which works fine. :) Thanks!

nebulous commented 1 year ago
greggitter commented 1 year ago

Thanks. Just went and tried that per above (the "ExecStart=LOGLEVEL=error..." option), but unfortunately doesn't work...fails to start. No worries....I'll tweak it in the source.

Cheers! :)