Add info logging for close codes we cannot handle.
This commit is contained in:
parent
9d4f3ebb43
commit
1b3234ab64
@ -414,6 +414,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
|
||||
log.info('Websocket closed with {0.code} ({0.reason}), attempting a reconnect.'.format(e))
|
||||
raise ResumeWebSocket(self.shard_id) from e
|
||||
else:
|
||||
log.info('Websocket closed with {0.code} ({0.reason}), cannot reconnect.'.format(e))
|
||||
raise ConnectionClosed(e, shard_id=self.shard_id) from e
|
||||
|
||||
@asyncio.coroutine
|
||||
|
Loading…
x
Reference in New Issue
Block a user