Skip to content

Commit

Permalink
Disambiguate voice ws message logging
Browse files Browse the repository at this point in the history
  • Loading branch information
imayhaveborkedit committed Sep 6, 2023
1 parent 0406b5a commit 7dc0c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -1040,10 +1040,10 @@ async def poll_event(self) -> None:
if msg.type is aiohttp.WSMsgType.TEXT:
await self.received_message(utils._from_json(msg.data))
elif msg.type is aiohttp.WSMsgType.ERROR:
_log.debug('Received %s', msg)
_log.debug('Received voice %s', msg)
raise ConnectionClosed(self.ws, shard_id=None) from msg.data
elif msg.type in (aiohttp.WSMsgType.CLOSED, aiohttp.WSMsgType.CLOSE, aiohttp.WSMsgType.CLOSING):
_log.debug('Received %s', msg)
_log.debug('Received voice %s', msg)
raise ConnectionClosed(self.ws, shard_id=None, code=self._close_code)

async def close(self, code: int = 1000) -> None:
Expand Down

0 comments on commit 7dc0c4e

Please sign in to comment.