Commit eee5423d authored by David Wilson's avatar David Wilson

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

parent 9adadb5c
...@@ -56,6 +56,7 @@ def format_stacks(): ...@@ -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(*_): ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment