Received: (from majordom@localhost) by hyperreal.org (8.8.5/8.8.5) id HAA02306; Wed, 23 Jul 1997 07:20:10 -0700 (PDT) Received: (from gnats@localhost) by hyperreal.org (8.8.5/8.8.5) id HAA02196; Wed, 23 Jul 1997 07:20:03 -0700 (PDT) Date: Wed, 23 Jul 1997 07:20:03 -0700 (PDT) Message-Id: <199707231420.HAA02196@hyperreal.org> From: Rainer Werlein Reply-To: Rainer Werlein To: apache-bugdb@apache.org Cc: apache-bugdb@apache.org Subject: other/902: #including explain.h from header makes messages less useful In-Reply-To: Your message of Wed, 23 Jul 1997 07:10:19 -0700 (PDT) <199707231410.HAA28333@hyperreal.org> Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 902 >Category: other >Synopsis: #including explain.h from header makes messages less useful >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache (Apache HTTP Project) >State: open >Class: change-request >Submitter-Id: apache >Arrival-Date: Wed Jul 23 07:20:01 1997 >Originator: rainer.werlein@erlangen.netsurf.de >Organization: apache >Release: 1.2.x >Environment: OS/2, Linux, both with gcc (The problem is NOT OS dependant) >Description: Tracing mod_proxy's operations using the Explain() facility is harder then necessary, because all logged messages seem to come from one source file: mod_proxy.h. Cause: DEF_Explain is 'called' in mod_proxy.h. This Macro finally expands __FILE__ as the source file spec for the messages, and this is always the header, not the .c file. (The line numbers are correct, of cause.) >How-To-Repeat: run apache with EXPLAIN #define'd in mod_proxy.h >Fix: move the 'calls' of DEF_Explain to the .c file >Audit-Trail: >Unformatted: