From cc23eba4c44633af077515cdd2d21d5ae91b5015 Mon Sep 17 00:00:00 2001 From: Kae Bartlett Date: Wed, 17 Jan 2024 00:59:50 +0000 Subject: [PATCH] Add a couple more logger lines to see where we get stuck --- novus/api/gateway/gateway.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novus/api/gateway/gateway.py b/novus/api/gateway/gateway.py index 3f8204c6..8d09f987 100644 --- a/novus/api/gateway/gateway.py +++ b/novus/api/gateway/gateway.py @@ -442,6 +442,7 @@ async def connect( log.info(f"[{self.shard_id}] Entering connect semaphore") async with self.connect_semaphore: + log.info(f"[{self.shard_id}] Entered connect semaphore") await self._connect(ws_url, reconnect) log.info(f"[{self.shard_id}] Leaving connect semaphore") @@ -493,6 +494,7 @@ async def _connect( # Open socket if reconnect is False: self.sequence = None + log.info(f"[{self.shard_id}] Getting session") session = await self.parent.get_session() ws_url = ws_url or self.ws_url log.info("[%s] Creating websocket connection to %s", self.shard_id, ws_url) @@ -519,8 +521,6 @@ async def _connect( # Get hello try: got = await asyncio.wait_for(self.receive(), timeout=10.0) - # except GatewayException: - # return await self.close() except Exception as e: if attempt >= 5: log.info(