From 1850ee8718a9d7a0f58a7aacc213e3b6c7026001 Mon Sep 17 00:00:00 2001 From: Jacob Henry Date: Wed, 28 Nov 2018 16:37:06 -0500 Subject: [PATCH] Added a debug function that counts all current tasks --- client_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_wrapper.py b/client_wrapper.py index 93b08ca..5b92d79 100644 --- a/client_wrapper.py +++ b/client_wrapper.py @@ -99,7 +99,7 @@ class ClientWrapper(object): except slack_util.DeadHook: # If a hook wants to die, let it. self.hooks.remove(hook) - print("Done spawning tasks") + print("Done spawning tasks. Now {} running total.".format(len(asyncio.all_tasks()))) async def async_message_feed(self) -> AsyncGenerator[dict, None]: """