Gossamer Forum
Home : General : Perl Programming :

Not to log errors

Quote Reply
Not to log errors
Hi,

Can a perl program be instructed not to log errors to the apache error_log file by way of a line of code in the cgi program?

As I understand it, you cannot actually filter what goes into the error_log (unlike the Access Logs) so a block in the cgi program is the way to go.

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Not to log errors In reply to
Why do you want to block it?
Quote Reply
Re: [Paul] Not to log errors In reply to
Because im getting over 1000 errors a day being logged! The programmer of the script cant nail the problem down so will have to suppress these errors somehow until he finds the fix. The script work perfectly at the users end.

Can error suppression be done for individual scripts?

Sample error:

sub Apache::sys::amazon_2epl::get vs ($) at (eval 551) line 1
Prototype mismatch: sub Apache::ROOTwww_2thissite_2ecom

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Not to log errors In reply to
Eww... is your script using the LWP modules?

Last edited by:

Paul: Feb 12, 2003, 5:09 PM
Quote Reply
Re: [Paul] Not to log errors In reply to
I think so - could this be it

eval 'use LWP::Simple qw($ua get)'; if ($@) { print "Content-type: text/html\n\n"; print "Unable to use LWP::Simple and this script cannot function without it.\n"; exit;

--------------------------------
Privacy Software
Quote Reply
Re: [BLOOD] Not to log errors In reply to
I've experienced this type of error before and to fix it I had to upgrade the LWP bundle.

Last edited by:

Paul: Feb 13, 2003, 4:41 AM
Quote Reply
Re: [Paul] Not to log errors In reply to
Interesting.

I am actually the only one with these problems using this script so it could well be my system. I'll check if I need an update for this module bundle. Many thanks.

--------------------------------
Privacy Software