From e74c9dcaa60bc1d658d4a901cc31c3273fb06a46 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Fri, 22 Feb 2019 22:31:57 -0500 Subject: [PATCH] Small tweak to output to make it spam less --- slack_util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slack_util.py b/slack_util.py index 79b994e..9366292 100644 --- a/slack_util.py +++ b/slack_util.py @@ -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