On Wed, Mar 14, 2012 at 12:48 PM, Branko Čibej <br...@apache.org> wrote:
> On 14.03.2012 17:08, Hyrum K Wright wrote:
>> On Wed, Mar 14, 2012 at 10:47 AM, Greg Stein <gst...@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.

-Hyrum


-- 

uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com/

Reply via email to