Re: Disable warnings in production environment
Jérôme Étévé <[email protected]> Wed, 20 Aug 2014 17:01:00 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CAFkhWr-ykD77vhV-CerzJaLYPt0Omty_qc6sXOe6wL6tB-ufsQ@mail.gmail.com> |
You can probably use SIG{__WARN__} to silence your warnings, but
really I don't recommend it.
Warnings shouldn't be emitted in the first place :)
See.
http://perldoc.perl.org/functions/warn.html
Cheers,
J.
On 20 August 2014 16:27, Kamil Niechajewicz
<[email protected]> wrote:
> Hello,
>
> Is there any way to disable Perl warnings in Mason2 components? This is
> useful for development environment, but when it goes to production,
> especially for site with a lot of traffic, it's flooding application error
> logs.
>
> I've tried disabling it by removing "use warnings" in base Mason component
> and similar things, but without any success. I could try to filter logs by
> some most common warnings, but it would be much better if it can be somehow
> disabled on Mason2/Perl level.
>
> So, does anyone know what is responsible for warnings in Mason2 components
> and how to turn it off?
>
>
> Best regards,
> Kamil
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
--
Jerome Eteve
+44(0)7738864546
http://www.eteve.net/
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/