Skip to content

Commit 307820f

Browse files
committed
Some more debugging info when dumping stacks
1 parent 2af91b2 commit 307820f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def pytest_addoption(parser):
7979

8080

8181
def debug(sig, frame):
82+
print('Dumping thread info')
8283
with open('/tmp/python-dump.txt', 'w') as f:
8384
try:
8485
for thr in threading.enumerate():
@@ -87,6 +88,7 @@ def debug(sig, frame):
8788
traceback.print_stack(sys._current_frames()[thr.ident], file=f)
8889
f.write('\n\n')
8990
except Exception as ex:
91+
logger.exception('Failed to dump thread info')
9092
f.write(str(ex))
9193

9294

0 commit comments

Comments
 (0)