Disable warnings in production environment
Kamil Niechajewicz <[email protected]> Wed, 20 Aug 2014 17:27:23 +0200
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CADhCoLVgepRo0TjQ2+JHjebJt12f3ynk+L=y_5B0zwRZAWLBEg@mail.gmail.com> |
--===============2315042115450661141== Content-Type: multipart/alternative; boundary=001a11c348f0a497010501113d0e --001a11c348f0a497010501113d0e Content-Type: text/plain; charset=UTF-8 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 --001a11c348f0a497010501113d0e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello, <div><br></div><div>Is there any way to disable Perl warnings in Mason2 com= ponents? This is useful for development environment, but when it goes to pr= oduction, especially for site with a lot of traffic, it's flooding appl= ication error logs.</div> <div><br></div><div>I've tried disabling it by removing "use warni= ngs" in base Mason component and similar things, but without any succe= ss. I could try to filter logs by some most common warnings, but it would b= e much better if it can be somehow disabled on Mason2/Perl level.=C2=A0</di= v> <div><br></div><div>So, does anyone know what is responsible for warnings i= n Mason2 components and how to turn it off?</div><div><br></div><div><br></= div><div>Best regards,</div><div>Kamil</div></div> --001a11c348f0a497010501113d0e-- --===============2315042115450661141== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ --===============2315042115450661141== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users --===============2315042115450661141==--