Small tweak to output to make it spam less

This commit is contained in:
Jacob Henry 2019-02-22 22:31:57 -05:00
parent 77aa8755ed
commit e74c9dcaa6
1 changed files with 1 additions and 2 deletions

View File

@ -276,7 +276,7 @@ class ClientWrapper(object):
# If we get a coro back, then task it up and set consumption appropriately
if coro is not None:
print("Spawned task")
print("Spawned task. Now {} running total.".format(len(asyncio.all_tasks())))
yield asyncio.create_task(_exception_printing_task(coro))
if hook.consumes:
break
@ -284,7 +284,6 @@ class ClientWrapper(object):
except DeadHook:
# If a hook wants to die, let it.
self.hooks.remove(hook)
print("Done spawning tasks. Now {} running total.".format(len(asyncio.all_tasks())))
# Data getting/sending