mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 11:26:51 +00:00
Remove gateway trace information
This was unused anyway
This commit is contained in:
parent
53685b9b86
commit
66881ba458
@ -543,26 +543,14 @@ class DiscordWebSocket:
|
|||||||
return
|
return
|
||||||
|
|
||||||
if event == 'READY':
|
if event == 'READY':
|
||||||
self._trace = trace = data.get('_trace', [])
|
|
||||||
self.sequence = msg['s']
|
self.sequence = msg['s']
|
||||||
self.session_id = data['session_id']
|
self.session_id = data['session_id']
|
||||||
_log.info(
|
_log.info('Shard ID %s has connected to Gateway (Session ID: %s).', self.shard_id, self.session_id)
|
||||||
'Shard ID %s has connected to Gateway: %s (Session ID: %s).',
|
|
||||||
self.shard_id,
|
|
||||||
', '.join(trace),
|
|
||||||
self.session_id,
|
|
||||||
)
|
|
||||||
|
|
||||||
elif event == 'RESUMED':
|
elif event == 'RESUMED':
|
||||||
self._trace = trace = data.get('_trace', [])
|
|
||||||
# pass back the shard ID to the resumed handler
|
# pass back the shard ID to the resumed handler
|
||||||
data['__shard_id__'] = self.shard_id
|
data['__shard_id__'] = self.shard_id
|
||||||
_log.info(
|
_log.info('Shard ID %s has successfully RESUMED session %s.', self.shard_id, self.session_id)
|
||||||
'Shard ID %s has successfully RESUMED session %s under trace %s.',
|
|
||||||
self.shard_id,
|
|
||||||
self.session_id,
|
|
||||||
', '.join(trace),
|
|
||||||
)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
func = self._discord_parsers[event]
|
func = self._discord_parsers[event]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user