Doug MacEachern wrote:
> On Tue, 25 Jun 2002, Stas Bekman wrote:
>
>
>>Has anybody tried to use the Apache::LOG_TOCLIENT constant in 2.0? It's
>>supposed to tell log_rerror() to send the error to the client in
>>addition to logging it.
>>
>>I'm trying:
>>
>> $r->log_rerror(Apache::LOG_MARK, Apache::LOG_ERR|Apache::LOG_TOCLIENT,
>> APR::ENOTIME, "request log_rerror");
>>
>>but the message is only logged and not sent to the client.
>
>
> Apache::LOG_TOCLIENT just means put the message into
> $r->notes->{'error-notes'}. the ErrorDocument or default error handler
> needs to actually send the value of error-notes to the client.
yup that's what the doc says, I was just wonder why the default error
handler doesn't do that.
Thanks.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]