Re: Call stack with new testsuite logging?
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().
Received on 2012-03-14 18:48:40 CET
This is an archived mail posted to the Subversion Dev