[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Handling assertions and malfunctions in mod_dav_svn

From: Ben Reser <ben_at_reser.org>
Date: Tue, 17 Feb 2015 12:58:13 -0800

On 2/17/15 12:01 PM, Evgeny Kotkov wrote:
> Ben Reser <ben_at_reser.org> writes:
>> +1 except for the mod_dav_svn: prefix in the log output. httpd should be
>> adding that for you with APLOG_MARK.
> I committed the patch in r1660480 and chose to keep the "mod_dav_svn:" prefix
> for two reasons:
> - Other messages nearby use the same prefix.
> - If I am not mistaken, in order for the APLOG_MARK() to use the current
> module index, we have to declare mod_dav_svn with APLOG_USE_MODULE(),
> as we do, for example, in mod_authz_svn.c:
> APLOG_USE_MODULE(authz_svn);
> #else
> /* This is part of the APLOG_USE_MODULE() macro in httpd-2.3 */
> extern module AP_MODULE_DECLARE_DATA authz_svn_module;
> #endif
> Currently we don't do this for mod_dav_svn, so APLOG_MARK is not going to
> automatically include the module name. I am not exactly aware about the
> reasons for not doing this, but I preferred to keep things consistent with
> what's around.

For some reason I was thinking that the module name was logged starting with
2.2 but it started with 2.3/2.4. We should fix mod_dav_svn to follow the
2.3/2.4 conventions and handle not including the module name in the messages if
running on 2.3/2.4 but what you did is fine for now until we do so.

Received on 2015-02-17 21:59:02 CET

This is an archived mail posted to the Subversion Dev mailing list.