Running everything just fine on a Raspberry Pi v4, sometimes when the cell service becomes weak, the QMI process spams the /var/log/syslog.log and the /var/log/daemon.log with the following message:
Jun 13 06:24:37 raspberrypi sh[576]: [06-13_06:24:37:081] QmiWwanThread poll err/hup/inval
Jun 13 06:24:37 raspberrypi sh[576]: [06-13_06:24:37:081] poll fd = 7, events = 0x0008
This happens endlessly until the log files have filled the disk space (10’s of GB), which then cause all sorts of other problems including limited connectivity.
- Is there any way to fix this?
- If not, is there a way to disable logging?
- If not, is there a proper way to configure logrotate so it catches this quickly and dumps the logs?