From e2b7440a5c336f0c0a86811d6e506c6fef4d7c14 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 31 Jul 2017 10:02:05 -0400 Subject: [PATCH] Put id of thread in the trace When looking at the traces, handy to have ids for each thread for various purposes. --- confluent_server/confluent/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/main.py b/confluent_server/confluent/main.py index b8439b3f..79944897 100644 --- a/confluent_server/confluent/main.py +++ b/confluent_server/confluent/main.py @@ -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()