Re: die problem in mod_perl

2008-09-12 Thread Perrin Harkins
On Fri, Sep 12, 2008 at 3:46 PM, kropotkin [EMAIL PROTECTED] wrote: Then I want to stop the script executing any further and ideally to write to the server error logs. So the last line of my error handling routine is: die $error_message. Make that: print STDERR $error_message; return OK(); -

Re: die problem in mod_perl

2008-09-12 Thread kropotkin
: http://www.nabble.com/die-problem-in-mod_perl-tp19462854p19464258.html Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: die problem in mod_perl

2008-09-12 Thread Perrin Harkins
On Fri, Sep 12, 2008 at 6:38 PM, kropotkin [EMAIL PROTECTED] wrote: Just one problem though - print STDERR is printing the message to the main server error log not the virtual host error log. die printed it to the virtual host error log. Yeah, that was bad advice. You should probably use

Re: die problem in mod_perl

2008-09-12 Thread kropotkin
it to the virtual host error log. Yeah, that was bad advice. You should probably use Apache2::Log for this instead: http://perl.apache.org/docs/2.0/api/Apache2/Log.html - Perrin -- View this message in context: http://www.nabble.com/die-problem-in-mod_perl-tp19462854p19465537.html Sent from