1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-16 10:49:24 +00:00

Ignore HEARTBEAT_ACK for now to disable the noisy logging.

This commit is contained in:
Rapptz 2016-06-27 21:32:43 -04:00
parent abf9be5f7d
commit e600abbbab

@ -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)