diff options
| author | Rapptz <[email protected]> | 2017-02-24 17:23:46 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-02-24 17:23:46 -0500 |
| commit | 1b3234ab643bd8ebd901048fcf7571517ff0ddfe (patch) | |
| tree | 9699a2059b2310822c38c139e571097435bb711b | |
| parent | Miscellaneous documentation fixes in Client.wait_for (diff) | |
| download | discord.py-1b3234ab643bd8ebd901048fcf7571517ff0ddfe.tar.xz discord.py-1b3234ab643bd8ebd901048fcf7571517ff0ddfe.zip | |
Add info logging for close codes we cannot handle.
| -rw-r--r-- | discord/gateway.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index c44dba26..445bb976 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -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 |