diff options
| author | Rapptz <[email protected]> | 2017-04-12 19:37:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-04-12 19:43:47 -0400 |
| commit | ac90159c7247016c36bad1d335d26819425d5458 (patch) | |
| tree | 787345dfc6d41f48bb39025212c3186954e36e84 /discord/shard.py | |
| parent | [commands] Bot.get_all_emojis no longer exists. (diff) | |
| download | discord.py-ac90159c7247016c36bad1d335d26819425d5458.tar.xz discord.py-ac90159c7247016c36bad1d335d26819425d5458.zip | |
Improve logging in more places.
This shows the Shard ID in more places, along with a gateway trace and
session ID. Also helps show the RESUME/IDENTIFY/RESUMED/READY flow a
bit more instead of it looking like the connection has zombied out.
Diffstat (limited to 'discord/shard.py')
| -rw-r--r-- | discord/shard.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/shard.py b/discord/shard.py index 723bc5da..07a6590b 100644 --- a/discord/shard.py +++ b/discord/shard.py @@ -55,7 +55,7 @@ class Shard: try: yield from self.ws.poll_event() except ResumeWebSocket as e: - log.info('Got a request to RESUME the websocket.') + log.info('Got a request to RESUME the websocket at Shard ID %s.', self.id) self.ws = yield from DiscordWebSocket.from_client(self._client, resume=True, shard_id=self.id, session=self.ws.session_id, @@ -191,7 +191,6 @@ class AutoShardedClient(Client): # OP HELLO yield from ws.poll_event() yield from ws.identify() - log.info('Sent IDENTIFY payload to create the websocket for shard_id: %s' % shard_id) # keep reading the shard while others connect self.shards[shard_id] = ret = Shard(ws, self) |