michaelahern / homebridge-airthings

A Homebridge plugin for Airthings air quality monitors via the Airthings Consumer API.
ISC License
38 stars 6 forks source link

Reduce logging #27

Closed davidjbradshaw closed 1 year ago

davidjbradshaw commented 1 year ago

Change the latest samples log message to use log.debug to reduce the amount of messages in the main HomeBridge log file to a manageable level.

athurdent commented 1 year ago

Would be cool to not reduce default logging, as I am grabbing the samples from the log file to store them with my monitoring tool. The customer API only allows a limited query frequency, thus I opted to not collect them separately, as this would exceed the maximum number of allowed requests per hour.

davidjbradshaw commented 1 year ago

Maybe create an option then, but it is not good to spam the log file every minute by default. It stops people seeing other issues.

athurdent commented 1 year ago

Every other plugin I use also logs temperature etc. E.g. Govee, Fritz, Mhac-WiFi are all showing environmental data.

michaelahern commented 1 year ago

Merging, but planning to make this configurable like many other plugins so it can be opt-in for those who want to view it (and not have to enable debug globally within Homebridge).