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
<k.niechajew...@firma.bankier.pl> 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
> Mason-users@lists.sourceforge.net
> 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/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to