fix(pterodactyl): added temporary debugging logs
All checks were successful
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 20s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 20s

This commit is contained in:
Seaswimmer 2024-02-28 11:55:48 -05:00
parent 09d48082e5
commit 2312cce011
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -31,14 +31,18 @@ class Pterodactyl(commands.Cog):
base_url = await self.config.base_url()
api_key = await self.config.api_key()
server_id = await self.config.server_id()
self.logger.debug("debug 1")
extra_headers = {
"Origin": base_url
}
self.logger.debug("debug 2")
try:
client = PterodactylClient(base_url, api_key).client
self.logger.debug("debug 3")
websocket_credentials = client.servers.get_websocket(server_id)
self.logger.debug("debug 4")
self.logger.debug("Websocket connection details retrieved:\nSocket: %s\nToken: %s", websocket_credentials['data']['socket'], websocket_credentials['data']['token'])
except exceptions.ClientConfigError as e:
self.logger.error('Failed to initialize Pterodactyl client: %s', e)