httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: module log id missing for main.c
Date Mon, 02 Dec 2013 15:43:03 GMT
On Sat, Nov 23, 2013 at 12:00 PM, Rainer Jung <rainer.jung@kippdata.de>wrote:

> On 23.11.2013 14:19, Jeff Trawick wrote:
> > (maybe sf already knows something about this)
> >
> > [Thu Nov 21 16:20:17.035427 2013] [:emerg] [pid 1237:tid 47440161182336]
> > AH00017: Pre-configuration failed, exiting
> >
> > Maybe main.c isn't a module, but it is probably best to put "core" there.
>
> Some other server/*.c files do it like this:
>
> --- server/main.c     (revision 1544810)
> +++ server/main.c     (working copy)
> @@ -50,6 +50,10 @@
>  #define isatty(n) (0)
>  #endif
>
> +/* we know core's module_index is 0 */
> +#undef APLOG_MODULE_INDEX
> +#define APLOG_MODULE_INDEX AP_CORE_MODULE_INDEX
> +
>  /* WARNING: Win32 binds http_main.c dynamically to the server. Please
> place
>   *          extern functions and global data in another appropriate
> module.
>   *
>
>
> It does add "core" into the log line, but not sure whether that would be
> correct for anything logged from inside main.c. I'd say "yes".
>
> Regards,
>
> Rainer
>

works for me, committed as r1547065

Thanks!


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Mime
View raw message