Skip to content

Commit 498f497

Browse files
committed
Update graphql.py
1 parent f7d225b commit 498f497

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyhilo/graphql.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ async def subscribe_to_device_updated(
548548
self, location_hilo_id: str, callback: callable = None
549549
) -> None:
550550
LOG.debug("subscribe_to_device_updated called")
551+
552+
#Setting log level to suppress keepalive messages on gql transport
553+
logging.getLogger('gql.transport.websockets').setLevel(logging.WARNING)
551554
while True: # Loop to reconnect if the connection is lost
552555
LOG.debug("subscribe_to_device_updated while true")
553556
access_token = await self._get_access_token()

0 commit comments

Comments
 (0)