forked from blizzthewolf/SeaCogs
fix(pterodactyl): fixed debug logging causing an error in establish_websocket_connection
This commit is contained in:
parent
ea84044e73
commit
680f92572c
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Pterodactyl(commands.Cog):
|
||||||
try:
|
try:
|
||||||
client = PterodactylClient(base_url, api_key).client
|
client = PterodactylClient(base_url, api_key).client
|
||||||
websocket_credentials = client.servers.get_websocket(server_id)
|
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:
|
except exceptions.ClientConfigError as e:
|
||||||
self.logger.error(f'Failed to initialize Pterodactyl client: {e}')
|
self.logger.error(f'Failed to initialize Pterodactyl client: {e}')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue