On Tue, 4 Mar 2003, Stas Bekman wrote: > Kurt George Gjerde wrote: > > BTW: I've fixed my "can't coerce GLOB to string" problem I had last week. > > Was unrelated to mod_perl (sorry). It seems XML::LibXSLT produced some > > errors which went straight to STDERR. Under CGI these ends up in the > > error_log but under mod_perl it seems STDERR is just a black hole (?). > > Would it be possible to map STDERR to log_error()? > > Unless I'm missing something, mod_perl doesn't do anything special with STDERR > (it does tie STDIN and STDOUT for 'perl-script' handlers). Apache opens stderr > to error_log, and then everything just works. e.g. if you do: > > warn "Foo"; > or > print STDERR "OOOPS\n"; > > this ends up in error_log, no?
Just found out what the problem is. I'm using virtual hosts and have separate error logs for each host. While $r->log_error() outputs to the virtual host's error log, print STDERR (and warn, etc) outputs to the default (global) error log (under regular cgi STDERR outputs to the virtual host's log). thanks, -Kurt. __________ kurt george gjerde <[EMAIL PROTECTED]> intermedia uib, university of bergen Will work for money. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
