httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu CARBONNEAUX <i...@ch2o.info>
Subject Re: [info@ch2o.info] Re: debug apache
Date Sun, 18 Jun 2006 12:49:19 GMT
i think is very usefull to have this in production environment... to debug probleme without
interupting production... in only up the log level with reload...
with strace you must restart apache with strace...and for desactivating it you must restart...
in some production environement is not acceptable...

  _____  

From: Nick Kew [mailto:nick@webthing.com]
To: dev@httpd.apache.org
Sent: Sat, 17 Jun 2006 14:14:25 +0200
Subject: [info@ch2o.info] Re: debug apache

On Saturday 17 June 2006 09:47, Ruediger Pluem wrote:
> On 06/17/2006 08:57 AM, Alexander Lazic wrote:
> > On Sam 17.06.2006 00:54, Ruediger Pluem wrote:
> >> From my current point of view the answer is: No, this is not possible
> >> out of the box.
> >> It may be possible if you modify the hook macros.
> >
> > And do you think that the developer would accept a patch for apache 2.x
> > and would apply it?
>
> Depends on the patch :-). Please take into account that these macros are
> part of apr-util. So this discussion belongs to dev@apr.apache.org.
> Currently I have not made any thoughts how these macros could be modified
> in a way such that they play together with httpd logging.

I think you'd be far better off with a generic trace such as strace.
They're made for precisely this kind of thing.

Having said that. what you could do with the hooks is to wrap them
in functions that add logging.  To do that with apache logging would
require the APR macros to be masked out.  Since you'd be adding 
overhead to everything the server does, you'll never get it accepted
into the main source tree, unless you can at the very least make it
conditionally compile.

-- 
Nick Kew
  
Mime
View raw message