httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Finch <>
Subject Re: logging APR errors
Date Mon, 17 Jul 2000 18:42:38 GMT
"Bill Stoddard" <> wrote:
>There are other techniques available as well. Look back a couple of months in this list
for Jeff
>Trawick's posts on this exact topic. One method mentioned at the time is to register an
>specifc (Apache in this case, or perhaps an individual MPM) error handling function with
APR at init
>time. This function is called to log the specific failure (function call, failing system
call, line
>of code, message string, etc.).

Apart from the problems of threading the application context down into the
error handling function properly, this totally fails to allow the calling
function to decide on a case-by-case basis how to handle an error.

If APR needs to distinguish between errors that would otherwise have the
same status code then it should return different status codes. Just
returning errno in this situation is a bug. (This solution to the problem
is a weaker form of the rich status type that Ken likes.)

481 therapeutic body-temp sump dunk

View raw message