httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfcl...@gmail.com>
Subject Re: AW: Problem trying to log in a directive
Date Mon, 28 Nov 2016 14:06:48 GMT
On 11/28/2016 02:46 PM, Plüm, Rüdiger, Vodafone Group wrote:
> 
> 
>> -----Ursprüngliche Nachricht-----
>> Von: jean-frederic clere [mailto:jfclere@gmail.com]
>> Gesendet: Montag, 28. November 2016 14:41
>> An: dev@httpd.apache.org
>> Betreff: Problem trying to log in a directive
>>
>> Hi,
>>
>> I have noted it isn't possible to have a directive failing and something
>> in the log once you fail in the second pass of the directive. See
>> attached sources (to build & install bin/apxs -i -a -c mod_test.c
>> )
>>
>> I can see the debug and warning in the first pass (output to the
>> console) but nothing in the second pass not even the ""A second pass
>> error." error and it looks like httpd stops without error message...
>>
>> Using strace I can see the following:
>> +++
>> 20943 write(2, "AH00526: Syntax error on line 11"..., 81) = 81
>> 20943 write(2, "A second pass error.\n", 21) = 21
> 
> Which means it should be written to the main error log which stderr should point to.
> Maybe you should check where fd 2 output gets to in your case.

20943 open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 9
20943 dup3(9, 2, 0)                     = 2
20943 close(9)                          = 0

In /dev/null if I am right.

Cheers

Jean-Frederic

> 
> Regards
> 
> Rüdiger
> 


Mime
View raw message