perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sergeant <m...@sergeant.org>
Subject Re: Apache::LogSTDERR
Date Thu, 15 Feb 2001 11:57:49 GMT
On Wed, 14 Feb 2001, Doug MacEachern wrote:

> On Wed, 14 Feb 2001, Matt Sergeant wrote:
>
> > Gotcha... So any idea what my bug is then? I had to switch everything to
> > info logs, which has *way* too much information for my debugging needs.
>
> nope, haven't had a chance to look yet.  if you want to speed it up, work
> up an httpd.conf entry, request, etc., what should be expected in what
> log, etc., that i can drop in to reproduce.  use whatever host/ips, i can
> edit my /etc/hosts or whatever to make it work.

package FooTest;
use Apache::Constants;
use Apache::Request;
use Apache::Reload;
use Apache::Log;

sub handler {
        my $r = shift;# Apache::Request->new(shift);

        warn "Warn to which log?\n";

        $r->log->info("Info to which log?\n");

        $r->send_http_header;
        print "Args: ", scalar $r->args, "\n";
        return OK;
}

1;

<VirtualHost 194.70.26.133>
ServerName www.sergeant.org
ServerAlias sergeant.org
DocumentRoot /home/matt/Web/www.sergeant.org
ErrorLog /home/matt/Web/Logs/www.error
CustomLog /home/matt/Web/Logs/www.log combined

 <Location /footest>
  SetHandler perl-script
  PerlHandler FooTest
 </Location>

</VirtualHost>

in /home/matt/Web/Logs/www.error we get:

[Thu Feb 15 11:53:31 2001] [info] [client 194.70.26.133] Info to which
log?

and in /opt/apache/logs/error_log (server's error log) we get:

Warn to which log?

Apache 1.3.17 and mod_perl 1.25. I upgraded both at the same time so I'm
not sure which one is causing the problem, but my httpd.conf wasn't
modified from before the upgrade.

Oh, and config directives are segfaulting again with 1.25 :-) I'm
seriously considering just shipping AxKit with a pre-compiled AxKit.xs
that I know works (i.e the one from mod_perl 1.24_01)...

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\


Mime
View raw message