Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit 66881ba

Browse files
committed
Remove gateway trace information
This was unused anyway
1 parent 53685b9 commit 66881ba

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

discord/gateway.py

+2-14
Original file line numberDiff line numberDiff line change
@@ -543,26 +543,14 @@ async def received_message(self, msg: Any, /) -> None:
543543
return
544544

545545
if event == 'READY':
546-
self._trace = trace = data.get('_trace', [])
547546
self.sequence = msg['s']
548547
self.session_id = data['session_id']
549-
_log.info(
550-
'Shard ID %s has connected to Gateway: %s (Session ID: %s).',
551-
self.shard_id,
552-
', '.join(trace),
553-
self.session_id,
554-
)
548+
_log.info('Shard ID %s has connected to Gateway (Session ID: %s).', self.shard_id, self.session_id)
555549

556550
elif event == 'RESUMED':
557-
self._trace = trace = data.get('_trace', [])
558551
# pass back the shard ID to the resumed handler
559552
data['__shard_id__'] = self.shard_id
560-
_log.info(
561-
'Shard ID %s has successfully RESUMED session %s under trace %s.',
562-
self.shard_id,
563-
self.session_id,
564-
', '.join(trace),
565-
)
553+
_log.info('Shard ID %s has successfully RESUMED session %s.', self.shard_id, self.session_id)
566554

567555
try:
568556
func = self._discord_parsers[event]

0 commit comments

Comments
 (0)