Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: What module do you like for debugging CGI scripts

by rinceWind (Monsignor)
on Jan 28, 2007 at 09:54 UTC ( [id://596958]=note: print w/replies, xml ) Need Help??


in reply to Re^2: What module do you like for debugging CGI scripts
in thread What module do you like for debugging CGI scripts

You don't want to turn off the logging altogether in a production environment, merely not to send the output to the browser. CGI::Carp will, by default, send the output to stderr, hence to the server log, which you do want in a production environment.

The following snippet should help:

BEGIN { my $carp_arg; if ($ENV{ENV} =~ /DEV/) { # or some other test for a non producti +on env $carp_arg = 'fatalsToBrowser'; } use CGI::Carp $carp_arg; }

--

Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://596958]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found