matthewwall / weewx-influx

uploader for influxdb
GNU General Public License v3.0
45 stars 22 forks source link

Change log level option #20

Closed mdallaire closed 5 years ago

mdallaire commented 5 years ago

I am using the weewx-influx plugin with the "loop" binding. This obviously generate a lot of post data.

When trying to look at the log it is currently filled with "restx: Influx: Published record ..." every one or two seconds.

An option to change the log level for the plugin to only display errors or warning would be a nice to have.

This would also be nice to have on the mqtt plugin.

My weewx.conf file currently have "debug = 0"

matthewwall commented 5 years ago

these already exist and apply to every restful service:

log_success
log_failure

just set log_success=false in [StdRESTful] or in the [Influx] section if you only want it to apply to the influx uploader.