Re: Registry and CGI::Carp

2012-01-27 Thread Brett Lee
Jim, Thanks for your reply.  Yes, that was my post to perlmonks.  set_progname() is a function in the Carp module that lets you set/reset the name of the Carping script; that way you know which script generated the logged event.  Another way is to pass "name=scriptX" to 

Re: Registry and CGI::Carp

2012-01-27 Thread Jim Schueler
o. Give it a try, and please let me know whether this solution gives you any traction. Cheers! -Jim On Fri, 27 Jan 2012, Brett Lee wrote: Hi Folks, Running several scripts under ModPerl::Registry that use CGI::Carp.  Am seeing problems with the logging.  The message that is logged is co

Registry and CGI::Carp

2012-01-27 Thread Brett Lee
Hi Folks, Running several scripts under ModPerl::Registry that use CGI::Carp.  Am seeing problems with the logging.  The message that is logged is correct, however the name of the script that generated the event is not. Each script contains a line similar to: use CGI::Carp qw(name=my_script_X

Re: CGI::Carp

2005-07-26 Thread Arshavir Grigorian
Arshavir Grigorian wrote: Hello list, Not sure when this started happening, but at some point calling CGI::Carp::carp() started resulting in deep recursion within CGI::Carp::warn() eventually killing the process. I think the recursion is caused by the following: $main::SIG{__WARN__}=\&

CGI::Carp

2005-07-21 Thread Arshavir Grigorian
Hello list, Not sure when this started happening, but at some point calling CGI::Carp::carp() started resulting in deep recursion within CGI::Carp::warn() eventually killing the process. I think the recursion is caused by the following: $main::SIG{__WARN__}=\&CGI::Carp::warn; sub real

Re: CGI::Carp and PerlRun

2004-12-09 Thread Stas Bekman
e under mod_cgi. CGI::Carp's documentation claims to have long ago been patched to work with mod_perl, I suppose it assumed mod_perl handlers, but may be not PerlRun. but for some reason this isn't working for me. Even a very simple example: #!/usr/bin/perl -w use CGI::Carp 'fa

CGI::Carp and PerlRun

2004-12-09 Thread Brian Dimeler
mod_cgi. CGI::Carp's documentation claims to have long ago been patched to work with mod_perl, but for some reason this isn't working for me. Even a very simple example: #!/usr/bin/perl -w use CGI::Carp 'fatalsToBrowser'; die 'CGI::Carp test'; will log this in error_log: [Thu