From 837bf4aa3420f77b612f25019c691b14349d0ffa Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 1 Mar 2024 13:16:22 -0500 Subject: [PATCH] fix(pterodactyl): changed a bunch of logger messages to be info and not debug --- pterodactyl/websocket.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 4bf3695..b87c7b7 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -17,7 +17,7 @@ from pterodactyl.pterodactyl import Pterodactyl async def establish_websocket_connection(coginstance: Pterodactyl) -> None: base_url = await config.base_url() - logger.debug("Establishing WebSocket connection") + logger.info("Establishing WebSocket connection") websocket_credentials = await retrieve_websocket_credentials(coginstance) @@ -26,18 +26,18 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None: auth_message = json.dumps({"event": "auth", "args": [websocket_credentials['data']['token']]}) await websocket.send(auth_message) - logger.debug("Authentication message sent") + logger.info("Authentication message sent") coginstance.websocket = websocket while True: # pylint: disable=too-many-nested-blocks message = await websocket.recv() if json.loads(message)['event'] in ('token expiring', 'token expired'): - logger.debug("Received token expiring/expired event. Refreshing token.") + logger.info("Received token expiring/expired event. Refreshing token.") websocket_credentials = await retrieve_websocket_credentials(coginstance) auth_message = json.dumps({"event": "auth", "args": [websocket_credentials['data']['token']]}) await websocket.send(auth_message) - logger.debug("Authentication message sent") + logger.info("Authentication message sent") if json.loads(message)['event'] == 'auth success': logger.info("WebSocket authentication successful")