From 66881ba458ce7c08999673c2456f1d4bb7398423 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 13 Jun 2022 01:02:44 -0400 Subject: [PATCH] Remove gateway trace information This was unused anyway --- discord/gateway.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/discord/gateway.py b/discord/gateway.py index e757c150f..7a5dd7f66 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -543,26 +543,14 @@ class DiscordWebSocket: return if event == 'READY': - self._trace = trace = data.get('_trace', []) self.sequence = msg['s'] self.session_id = data['session_id'] - _log.info( - 'Shard ID %s has connected to Gateway: %s (Session ID: %s).', - self.shard_id, - ', '.join(trace), - self.session_id, - ) + _log.info('Shard ID %s has connected to Gateway (Session ID: %s).', self.shard_id, self.session_id) elif event == 'RESUMED': - self._trace = trace = data.get('_trace', []) # pass back the shard ID to the resumed handler data['__shard_id__'] = self.shard_id - _log.info( - 'Shard ID %s has successfully RESUMED session %s under trace %s.', - self.shard_id, - self.session_id, - ', '.join(trace), - ) + _log.info('Shard ID %s has successfully RESUMED session %s.', self.shard_id, self.session_id) try: func = self._discord_parsers[event]