Drop high log level in ctx example

sigint_ignore_in_pdb_repl
Tyler Goodlet 2022-02-09 10:05:21 -05:00
parent a4396e78ee
commit 194c0e120d
1 changed files with 4 additions and 2 deletions
examples/debugging

View File

@ -16,19 +16,21 @@ async def just_bp(
await ctx.started('yo bpin here') await ctx.started('yo bpin here')
await tractor.breakpoint() await tractor.breakpoint()
# TODO: bps and errors in this call..
# async for val in gen(): # async for val in gen():
# print(val) # print(val)
await trio.sleep(0.5) await trio.sleep(0.5)
# THIS CAUSES AN UNRECOVERABLE HANG!? # THIS CAUSES AN UNRECOVERABLE HANG
# without latest ``pdbpp``:
assert 0 assert 0
async def main(): async def main():
async with tractor.open_nursery( async with tractor.open_nursery(
loglevel='transport', # loglevel='transport',
debug_mode=True, debug_mode=True,
) as n: ) as n:
p = await n.start_actor( p = await n.start_actor(