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

View File

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