From 680f92572cb762fc008a5cac5798d01fd01dd605 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 28 Feb 2024 08:20:35 -0500 Subject: [PATCH] fix(pterodactyl): fixed debug logging causing an error in establish_websocket_connection --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index ba68760..ab7a3e9 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -37,7 +37,7 @@ class Pterodactyl(commands.Cog): try: client = PterodactylClient(base_url, api_key).client websocket_credentials = client.servers.get_websocket(server_id) - self.logger.debug("Websocket connection details retrieved: " + websocket_credentials) + self.logger.debug(f"Websocket connection details retrieved:\nSocket: {websocket_credentials['data']['socket']}\nToken: {websocket_credentials['data']['token']}") except exceptions.ClientConfigError as e: self.logger.error(f'Failed to initialize Pterodactyl client: {e}') return