forked from goodboy/tractor
1
0
Fork 0

Drop thread logging to make `log.pdb()` patts match in test

runtime_to_msgspec
Tyler Goodlet 2024-06-07 22:35:59 -04:00
parent 408a74784e
commit 30d60379c1
1 changed files with 0 additions and 9 deletions
examples/debugging

View File

@ -1,6 +1,5 @@
from functools import partial
import time
from threading import current_thread
import trio
import tractor
@ -16,17 +15,9 @@ def sync_pause(
time.sleep(pre_sleep)
if use_builtin:
print(
f'Entering `breakpoint()` from\n'
f'{current_thread()}\n'
)
breakpoint(hide_tb=hide_tb)
else:
print(
f'Entering `tractor.pause_from_sync()` from\n'
f'{current_thread()}@{tractor.current_actor().uid}\n'
)
tractor.pause_from_sync()
if error: