issue #150: tidy up mitogen.debug output for use next time
This commit is contained in:
parent
9adadb5c3a
commit
eee5423dd9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue