2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Put id of thread in the trace

When looking at the traces, handy to have ids for each thread for various
purposes.
This commit is contained in:
Jarrod Johnson 2017-07-31 10:02:05 -04:00
parent a55ba02d11
commit e2b7440a5c

View File

@ -163,7 +163,7 @@ def dumptrace(signalname, frame):
continue
if not o:
continue
ht.write('Thread trace:\n')
ht.write('Thread trace: ({0})\n'.format(id(o)))
ht.write(''.join(traceback.format_stack(o.gr_frame)))
ht.close()