From 0baad4629830378fca00a57b5da0b7d82c9b18c8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 4 Mar 2024 23:06:51 -0500 Subject: [PATCH] misc(pterodactyl): temporarily adding a debug statement to test something --- pterodactyl/websocket.py | 1 + 1 file changed, 1 insertion(+) 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)