issue #150: tidy up mitogen.debug output for use next time

This commit is contained in:
David Wilson 2018-03-17 03:42:08 +05:45
parent 9adadb5c3a
commit eee5423dd9
1 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ def format_stacks():
threadId, threadId,
stack, stack,
)] )]
stack = stack.f_back.f_back
for filename, lineno, name, line in traceback.extract_stack(stack): for filename, lineno, name, line in traceback.extract_stack(stack):
l += [ l += [
@ -90,7 +91,7 @@ def _handler(*_):
)) ))
if diff: if diff:
fp.write('\n'.join(diff)) fp.write('\n'.join(diff) + '\n')
else: else:
fp.write('(no change since last time)\n') fp.write('(no change since last time)\n')
_last = s _last = s