diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 9a17acf..decc2c7 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -34,6 +34,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None: while True: # pylint: disable=too-many-nested-blocks message = json.loads(await websocket.recv()) + logger.debug("Received message from WebSocket:\n%s", json.dumps(message)) if message['event'] in ('token expiring', 'token expired'): logger.info("Received token expiring/expired event. Refreshing token.") websocket_credentials = await retrieve_websocket_credentials(coginstance)