I don't know that you would want to permanently disable those errors from being logged, but what you might do is this:
in reply to How can I Disable script.error_log ?
Keep in mind, however, that you should only remove the -w flag if this is a script in which you are confident is working without problems and is in a production environment... typically I run my scripts with -w while debugging, and afterwards will remove the "-w" flag, because it can spew LOTS of errors to your logs, depending on the contents of the script.
- "use strict" everywhere
- remove the "-w" flag, which will suppress some minor warnings
Or perhaps the lazy way would be to truncate the file intermittently with a cronjob.
would truncate the file to zero-length every 30 minutes.
*/30 * * * * cat /dev/null > /www/logs/script.error_log