forked from blizzthewolf/SeaCogs
misc(pterodactyl): added a comment explaining why pterodactylclient is being used with debug mode enabled
This commit is contained in:
parent
a52a991ae6
commit
5c2bfea238
1 changed files with 3 additions and 0 deletions
|
@ -132,6 +132,9 @@ async def retrieve_websocket_credentials(coginstance: Pterodactyl) -> Optional[d
|
||||||
coginstance.task.cancel()
|
coginstance.task.cancel()
|
||||||
raise ValueError("Pterodactyl server ID not set. Please set it using `[p]pterodactyl config serverid`.")
|
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, debug=True).client
|
||||||
coginstance.client = client
|
coginstance.client = client
|
||||||
websocket_credentials = client.servers.get_websocket(server_id)
|
websocket_credentials = client.servers.get_websocket(server_id)
|
||||||
|
|
Loading…
Reference in a new issue