From b5362ff15399d9ed1ab06f29096221f7876d12a8 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 7 Mar 2024 02:33:14 -0500 Subject: [PATCH] fix(pterodactyl): update PterodactylClient initialization to use my own logger instead of setting debug to true --- pterodactyl/websocket.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 15d1cb0..ece4020 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -134,10 +134,7 @@ 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 + client = PterodactylClient(base_url, api_key, logger=logger).client coginstance.client = client websocket_credentials = client.servers.get_websocket(server_id) logger.debug("""Websocket connection details retrieved: