Closed keptenkurk closed 7 years ago
also /var/daemon.log because of the bleutooth logging.
Well... than have a look at syslog, debug and auth.log too... they are also cluttered because of this bluetooth restarting every 10 seconds. The good thing is: all these files will be rotating and zipped already by the OS. Still it would be nicer if it were possible to keep the bluetooth running. BTW i schedule this pi to be only active an hour or so in the morning :-)
With the solution of #32 and no BT adapter resets the /var/log/daemon.log is not cluttered anymore. Also by moving the log outputs in py https://guides.github.com/features/mastering-markdown/gatt's gatttool.py scan procedure from INFO to DEBUG there will be no unwanted logging. Therefore logrotation won't be needed.
Since then I did 2 things to prevent the log to become big.
plugins = {}
+++ # Set pygatt log level
+++ # INFO floods the log file with 'Starting BLE scan', 'Discovered
# set up logging
Rotate logfiles as they tend to become pretty big over time. (from http://www.domoticz.com/forum/viewtopic.php?f=38&t=11305)