Registry and CGI::Carp

Brett Lee <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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);

When the scripts are precompiled in startup.pl, the *same* script name is logged for each and every script.  When scripts are not precompiled the name is frequently correct, but it is not correct all of the time.

A post earlier to Perl Monks came back with the suggestion to extend CGI::Carp.pm to support running under Registry.  As what I am trying to do seems like it would be a pretty common scenario, am thinking there may be another option.

Thanks for considering this one.
Brett
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.