httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Finch <...@dotat.at>
Subject Re: logging APR errors
Date Mon, 17 Jul 2000 18:42:38 GMT
"Bill Stoddard" <reddrum@attglobal.net> 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
application
>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.)

Tony.
-- 
f.a.n.finch    fanf@covalent.net    dot@dotat.at
481 therapeutic body-temp sump dunk

Mime
View raw message