On Wed, Mar 14, 2012 at 12:48 PM, Branko Čibej <brane_at_apache.org> wrote:
> On 14.03.2012 17:08, Hyrum K Wright wrote:
>> On Wed, Mar 14, 2012 at 10:47 AM, Greg Stein <gstein_at_gmail.com> wrote:
>>> Away from laptop right now, but the trace can be printed using
>>> logger.exception(). Not sure where to insert it, but that is the key method.
>> logger.execption() always logs at the ERROR level, and we (I?) are
>> aiming to keep test failure output logging at the WARN level (ERROR is
>> reserved for errors in the test suite itself).
>> svntest.main._log_exception() will log at the WARN level.
> Any logging call will print the exception info and stack trace if given
> the keyword parameter exc_info=True. You do not need the traceback
> module, you do not have to call sys.exc_info().
Thanks for the insight. Updated in r1300688.
uberSVN: Apache Subversion Made Easy
Received on 2012-03-14 20:07:55 CET