Skip to content

Commit

Permalink
Add a couple more logger lines to see where we get stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Jan 17, 2024
1 parent f903c22 commit cc23eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions novus/api/gateway/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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)
Expand All @@ -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(
Expand Down

0 comments on commit cc23eba

Please sign in to comment.