cleanup(pterodactyl): removed debug loggers
This commit is contained in:
parent
48634ac903
commit
7b83513d63
1 changed files with 0 additions and 4 deletions
|
@ -31,18 +31,14 @@ class Pterodactyl(commands.Cog):
|
||||||
base_url = await self.config.base_url()
|
base_url = await self.config.base_url()
|
||||||
api_key = await self.config.api_key()
|
api_key = await self.config.api_key()
|
||||||
server_id = await self.config.server_id()
|
server_id = await self.config.server_id()
|
||||||
self.logger.debug("debug 1")
|
|
||||||
|
|
||||||
extra_headers = {
|
extra_headers = {
|
||||||
"Origin": base_url
|
"Origin": base_url
|
||||||
}
|
}
|
||||||
self.logger.debug("debug 2")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client = PterodactylClient(base_url, api_key, debug=True).client
|
client = PterodactylClient(base_url, api_key, debug=True).client
|
||||||
self.logger.debug("debug 3")
|
|
||||||
websocket_credentials = client.servers.get_websocket(server_id)
|
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'])
|
self.logger.debug("Websocket connection details retrieved:\nSocket: %s\nToken: %s", websocket_credentials['data']['socket'], websocket_credentials['data']['token'])
|
||||||
except exceptions.ClientConfigError as e:
|
except exceptions.ClientConfigError as e:
|
||||||
self.logger.error('Failed to initialize Pterodactyl client: %s', e)
|
self.logger.error('Failed to initialize Pterodactyl client: %s', e)
|
||||||
|
|
Loading…
Reference in a new issue