httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject server_rec in APLOG_TRACEn messages
Date Fri, 11 Mar 2011 14:27:17 GMT
server/log.c discards anything higher than WARNING if the server_rec is NULL.

But, when adding new traceN messages deep down in modules,
request/conn/server recs might not be handy.

Is it safe to use extern server_rec* ap_server_conf in random modules
for trace messages?

Or should server/log.c know the difference between "still in startup"
and "stupid module couldn't find a server-rec to pass but really wants
info in main server errorlog via stderr?

(or, should server/log.c be willing to log anything < WARNING and >
TRACE1 to stderr via s==NULL? as long as it matches the LogLevel

-- 
Eric Covener
covener@gmail.com

Mime
View raw message