From 5c2bfea2384e50da7f304a12acb86ae55f9e931d Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 2 Mar 2024 19:08:36 -0500 Subject: [PATCH] misc(pterodactyl): added a comment explaining why pterodactylclient is being used with debug mode enabled --- pterodactyl/websocket.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index f87b221..f250cb1 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -132,6 +132,9 @@ async def retrieve_websocket_credentials(coginstance: Pterodactyl) -> Optional[d coginstance.task.cancel() raise ValueError("Pterodactyl server ID not set. Please set it using `[p]pterodactyl config serverid`.") + #FIXME - pydactyl should not be overriding the global python logger, but until that issue is fixed, + # we need to set the pydactyl logger to debug so it doesn't ignore any non-error log + # relevant issue - https://github.com/iamkubi/pydactyl/issues/82 client = PterodactylClient(base_url, api_key, debug=True).client coginstance.client = client websocket_credentials = client.servers.get_websocket(server_id)