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

Re: svn commit: r1204610 - /subversion/trunk/subversion/mod_dav_svn/repos.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 21 Nov 2011 17:45:42 +0000

philip_at_apache.org writes:

> Author: philip
> Date: Mon Nov 21 17:24:10 2011
> New Revision: 1204610
>
> URL: http://svn.apache.org/viewvc?rev=1204610&view=rev
> Log:
> * subversion/mod_dav_svn/repos.c (log_warning): Log all errors in chain so
> that the underlying cause of the error is recorded.
>
> Modified:
> subversion/trunk/subversion/mod_dav_svn/repos.c
>
> Modified: subversion/trunk/subversion/mod_dav_svn/repos.c
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/repos.c?rev=1204610&r1=1204609&r2=1204610&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/mod_dav_svn/repos.c (original)
> +++ subversion/trunk/subversion/mod_dav_svn/repos.c Mon Nov 21 17:24:10 2011
> @@ -1170,7 +1170,11 @@ static void log_warning(void *baton, svn
> ### of our functions ... ??
> */
>
> - ap_log_rerror(APLOG_MARK, APLOG_ERR, APR_EGENERAL, r, "%s", err->message);
> + while (err)
> + {
> + ap_log_rerror(APLOG_MARK, APLOG_ERR, APR_EGENERAL, r, "%s", err->message);
> + err = err->child;
> + }
> }

I'm wondering whether this is correct. Should it skip duplicates like
svn_handle_error2? Should it use svn_err_best_message like
svnserve/serve.c:log_error?

-- 
Philip
Received on 2011-11-21 18:46:29 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.