diff options
| author | Rapptz <[email protected]> | 2016-06-27 21:32:43 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-27 21:32:43 -0400 |
| commit | e600abbbab6efd4b1998fea3a72ffed4e1448d28 (patch) | |
| tree | c82bdee7a0ce76e4cb0050b0909461166125e5c5 | |
| parent | Guild Sharding support (diff) | |
| download | discord.py-e600abbbab6efd4b1998fea3a72ffed4e1448d28.tar.xz discord.py-e600abbbab6efd4b1998fea3a72ffed4e1448d28.zip | |
Ignore HEARTBEAT_ACK for now to disable the noisy logging.
| -rw-r--r-- | discord/gateway.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/gateway.py b/discord/gateway.py index ade93991..7ba78b07 100644 --- a/discord/gateway.py +++ b/discord/gateway.py @@ -300,6 +300,9 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol): yield from self.close() raise ReconnectWebSocket() + if op == self.HEARTBEAT_ACK: + return # disable noisy logging for now + if op == self.HELLO: interval = data['heartbeat_interval'] / 1000.0 self._keep_alive = KeepAliveHandler(ws=self, interval=interval) |