Hello.

Since forever, line 195 of Apache::AxKit::Language::XSP has been
writing warning messages into the error log file. These warnings seem
to be caused by the redirect() subroutine -which, as one would guess,
redirects a user to a new location- in AxKit::XSP::WebUtils, though it
might be that other modules cause them too.

The warning consist of the full contents of the XSP file that 'causes'
it (that is, the mod_perl'ed version of it, with all the dots in the
file name replaced by _2e - I'm pretty bad at terminology, but you
probably understand better what I'm talking about than I do...),
followed by a block like:

--------8<--------8<--------

        Apache::AxKit::Language::XSP::handler('Apache::AxKit::Language::XSP',
'AxKit::Apache=SCALAR(0xb385fac)',
'Apache::AxKit::Provider::File=HASH(0xb5313c8)',
'Apache::AxKit::Provider::File=HASH(0xb33cdb4)', '') called at
/path/to/perl/AxKit.pm line 759
        AxKit::process_request('AxKit::Apache=SCALAR(0xb385fac)',
'Apache::AxKit::Provider::File=HASH(0xb5313c8)', 'ARRAY(0xb373020)',
'undef') called at /path/to/perl/AxKit.pm line 474
        AxKit::run_axkit_engine('AxKit::Apache=SCALAR(0xb385fac)',
'Apache::AxKit::Provider::File=HASH(0xb5313c8)') called at
/path/to/perl/AxKit.pm line 300
        eval {...} called at /path/to/perl/AxKit.pm line 291
        AxKit::main_handler('AxKit::Apache=SCALAR(0xb385fac)',
'Apache::AxKit::Provider::File=HASH(0xb5313c8)') called at
/path/to/perl/AxKit.pm line 204
        AxKit::fast_handler('AxKit::Apache=SCALAR(0xb385fac)') called
at /dev/null line 0
        eval {...} called at /dev/null line 0

--------8<--------8<--------

The surroundings of the call to warn() on line 195 in
Apache::AxKit::Language::XSP are

--------8<--------8<--------

    my $dom = XML::LibXML::Document->createDocument("1.0", "UTF-8");
    my $rc = eval { $package->$cv($r, $cgi, $dom); };
    if ($@) {
        die $@ if (ref($@));
        if ($to_eval) {
            my $line = 1;
            $to_eval =~ s/\n/"\n".++$line." "/eg;
            warn("Script:\n1 $to_eval\n");
        }
        throw Apache::AxKit::Exception::Error(
            -text => "Execution failed: $@"
        );
    }

--------8<--------8<--------

I was wondering if anyone has an idea whether this is something to
worry about. And if not (they're "just" warnings after all), how to
stop them from clogging the error log file. (They occur, even though
I've set Apache's LogLevel to 'error' - though if this is really the
problem, I'd probably need to go and ask on the mod_perl or Apache
list.)

Oh, and we're talking AxKit 1 here.

Thanks.

Martijn.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to