misc(pterodactyl): temporarily adding a debug statement to test something
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 20s
Actions / Build Documentation (MkDocs) (push) Successful in 24s

This commit is contained in:
Seaswimmer 2024-03-04 23:06:51 -05:00
parent 3d3c5f708e
commit 0baad46298
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -34,6 +34,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
while True: # pylint: disable=too-many-nested-blocks while True: # pylint: disable=too-many-nested-blocks
message = json.loads(await websocket.recv()) 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'): if message['event'] in ('token expiring', 'token expired'):
logger.info("Received token expiring/expired event. Refreshing token.") logger.info("Received token expiring/expired event. Refreshing token.")
websocket_credentials = await retrieve_websocket_credentials(coginstance) websocket_credentials = await retrieve_websocket_credentials(coginstance)