Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

"-w" is for warnings

by Kozz (Friar)
on Feb 18, 2002 at 21:47 UTC ( #146263=note: print w/replies, xml ) Need Help??

in reply to How can I Disable script.error_log ?

I don't know that you would want to permanently disable those errors from being logged, but what you might do is this:
  • "use strict" everywhere
  • remove the "-w" flag, which will suppress some minor warnings
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.

Or perhaps the lazy way would be to truncate the file intermittently with a cronjob.
*/30 * * * * cat /dev/null > /www/logs/script.error_log
would truncate the file to zero-length every 30 minutes.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://146263]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2018-01-21 03:58 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (227 votes). Check out past polls.