[MKDoc-dev] [BUG] 1.8 Excessive error messages written to apache
error_log
Sam Tregar
sam at tregar.com
Thu Nov 18 18:38:38 GMT 2004
On Thu, 18 Nov 2004, Chris Croome wrote:
> > I'm probably going to hate myself for saying this, but we could just
> > turn off warnings.
>
> Yeah, I guess, how would we do this?
The code to globally turn off warnings is:
$^W = 0;
Another way to do it is to setup an empty signal handle for the
special "__WARN__" signal:
$SIG{"__WARN__"} = sub {};
That will supress warnings even if some code tries to turn warnings
back on later.
Either one should be made optional so developers can run with full
warnings.
-sam
More information about the MKDoc-dev
mailing list