# HG changeset patch # User Marcin Kuzminski # Date 2017-05-09 09:49:44 # Node ID a2c26a724a5de152a777e339de08ecdf9c86ed46 # Parent b7a258b980a823372a0d4c37813b685e92d8dcf2 vcsserver: add debug information to some of the errors that might happen. diff --git a/vcsserver/svn.py b/vcsserver/svn.py --- a/vcsserver/svn.py +++ b/vcsserver/svn.py @@ -23,6 +23,7 @@ import posixpath as vcspath import StringIO import subprocess import urllib +import traceback import svn.client import svn.core @@ -120,8 +121,9 @@ class SvnRemote(object): # throws exception try: svnrepo.svnremoterepo(baseui, url).svn.uuid - except: - log.debug("Invalid svn url: %s", url) + except Exception: + tb = traceback.format_exc() + log.debug("Invalid Subversion url: `%s`, tb: %s", url, tb) raise URLError( '"%s" is not a valid Subversion source url.' % (url, )) return True @@ -130,7 +132,8 @@ class SvnRemote(object): try: svn.repos.open(path) except svn.core.SubversionException: - log.debug("Invalid Subversion path %s", path) + tb = traceback.format_exc() + log.debug("Invalid Subversion path `%s`, tb: %s", path, tb) return False return True