modbus: avoid enabling libmodbus's debug flag by default
authorMarc Fournier <marc.fournier@camptocamp.com>
Thu, 25 Feb 2016 10:22:18 +0000 (11:22 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Thu, 25 Feb 2016 10:22:18 +0000 (11:22 +0100)
commitc6ec7654302659415defe4f497384ea0edc15e98
tree6c0740e4b580e483838c74411084e7e4b752efd2
parent8fc1bf9987ab1aa8cef8c3125da82de59d93efb1
modbus: avoid enabling libmodbus's debug flag by default

Having this enabled makes collectd's stdout and stderr very noisy. From
now on, only activate this flag when collectd is built with
--enable-debug.

Thanks to Eric Sandeen for mentioning this problem on IRC.
src/modbus.c