Re: [mp2] warnings
Nick Tonkin wrote: Is it possible to combine the recommended syntax: use warnings FATAL = 'all', NONFATAL = 'redefine'; with the ability to turn warnings on in httpd.conf with PerlSwitches -w? -w is the same as: use warnings 'all'; then you can override things in your code using the warnings pragma. Though I should add a note that NONFATAL was introduced only in 5.8, so you probably don't want to use it. Instead use: use warnings FATAL = 'all'; no warnings 'redefine'; __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp2] warnings
On Thu, 20 Feb 2003, Stas Bekman wrote: Nick Tonkin wrote: Is it possible to combine the recommended syntax: use warnings FATAL = 'all', NONFATAL = 'redefine'; with the ability to turn warnings on in httpd.conf with PerlSwitches -w? -w is the same as: use warnings 'all'; then you can override things in your code using the warnings pragma. Though I should add a note that NONFATAL was introduced only in 5.8, so you probably don't want to use it. I think that is already clear in the docs at http://perl.apache.org/docs/2.0/user/coding/coding.html#Auto_Reloading_Modified_Modules_with_Apache__Reload I just wanted to know if it was possible to get the same effect somehow using PerlSwitches in httpd.conf -- I guess not. If I put the 'use warnings;' pragma in startup.pl it will be server-wide, though, won't it? - nick -- Nick Tonkin {|8^)
Re: [mp2] warnings
Nick Tonkin wrote: On Thu, 20 Feb 2003, Stas Bekman wrote: Nick Tonkin wrote: Is it possible to combine the recommended syntax: use warnings FATAL = 'all', NONFATAL = 'redefine'; with the ability to turn warnings on in httpd.conf with PerlSwitches -w? -w is the same as: use warnings 'all'; then you can override things in your code using the warnings pragma. Though I should add a note that NONFATAL was introduced only in 5.8, so you probably don't want to use it. I think that is already clear in the docs at http://perl.apache.org/docs/2.0/user/coding/coding.html#Auto_Reloading_Modified_Modules_with_Apache__Reload I've added a warning, just in case. and removed the use of NONFATAL in examples, so people won't copy-n-paste it. I just wanted to know if it was possible to get the same effect somehow using PerlSwitches in httpd.conf -- I guess not. If I put the 'use warnings;' pragma in startup.pl it will be server-wide, though, won't it? no. all pragmas have work without a scope they are defined in. That's why you should use '-w' in httpd.conf __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp2] Warnings not showing in Apache log?
Andrzej Jan Taramina wrote: Later on you have reported that some problems went away. Does it include this one? I'm now seeing warningsbut they are flagged as [error] instead of [warning] in the Apache log. Any idea why? Does this happen when you run 'make test' as well? e.g. when you run: t/TEST -v api/aplog (see the corresponding t/response/TestAPI/aplog.pm) And when running under mp2, the lines in the log are not written using cr/lf on my windoze server like they should be. only lf (\n)? Unfortunately, I live in the country and my access is dial through Bell Sympatico...which is Bell Nexxia. Seems that your mail server bounces anything coming in from my ISP. Probably they are on the RBL. Not much I can do about that though, hence this response was posted to the list ;-( Hehe, your server bounces my emails as well ;) But that's a good thing for once, as this thread shouldn't leave the list. __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: [mp2] Warnings not showing in Apache log?
Later on you have reported that some problems went away. Does it include this one? I'm now seeing warningsbut they are flagged as [error] instead of [warning] in the Apache log. Any idea why? And when running under mp2, the lines in the log are not written using cr/lf on my windoze server like they should be. Unfortunately, I live in the country and my access is dial through Bell Sympatico...which is Bell Nexxia. Seems that your mail server bounces anything coming in from my ISP. Probably they are on the RBL. Not much I can do about that though, hence this response was posted to the list ;-( Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com