mknx / smarthome

http://mknx.github.io/smarthome/
GNU General Public License v3.0
126 stars 68 forks source link

Reduce logging in comfoair plugin #187

Closed ohinckel closed 8 years ago

ohinckel commented 8 years ago

I'm using the comfoair plugin for years now and it works well - thanks for implementing this plugin! But while I don't have problems with the plugin, the plugin "spams" the log with sent and received packages from and to the ComfoAir system like this:

[...]
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Triggering cyclic read command: ReadBypassPercentage
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Preparing command ReadBypassPercentage with value None (transformed to value byte '') to be sent.
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Successfully sent packet: 07:f0:00:0d:00:ba:07:0f
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Received 5 bytes chunk of response part 1: 07:f3:07:f0:00
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Received 2 bytes chunk of response part 1: 0e:04
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Received 7 bytes chunk of response part 2: 00:02:00:00:c1:07:0f
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Successfully received response: 07:f0:00:0e:04:00:02:00:00:c1:07:0f
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Triggering cyclic read command: ReadComfortTemperature
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Preparing command ReadComfortTemperature with value None (transformed to value byte '') to be sent.
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Successfully sent packet: 07:f0:00:d1:00:7e:07:0f
2015-11-28 00:00:49 INFO     ComfoAir-cyclic ComfoAir: Received 5 bytes chunk of response part 1: 07:f3:07:f0:00
[...]

This patch just changes the log level from INFO to DEBUG for these messages to avoid flooding the log. When someone have problems with this plugin it is still possible to run in the application debug mode.