sixad
sixad copied to clipboard
Logging issues
The log file is called /var/log/sixad , but the entry inserted into /etc/logrotate.d/sixad instructs it to rotate /var/log/sixad.log
Previously, this caused the log file to grow out of control quickly (which becomes a special kind of pain on btrfs), because if I don't keep my USB dongle plugged in all the times, I get an error message every second. With the latest version, the error message goes into journald instead of the log file, which is less of a problem due to journalctl's nature, but now the logs are full of garbage (and they still have to be stored somewhere).
What I suggest is:
- Fix the logrotate entry mismatch;
- Maybe provide an option to control logging (journald, logfile or disabled);
- A different behavior of the "No Bluetooth adapters found" error: produce that message once, and suppress repeating this error until an adapter is detected. Once it's detected, produce a "Bluetooth adapter found!" message and un-suppress the error.