Rather than treating the problem, you could always treat the symptom. Just run a secondary script every x amount of time that removes all the log file lines with error messages you don't want. This would probably take about 5 minutes to set up.