forked from blizzthewolf/SeaCogs
misc(pterodactyl): temporarily adding a debug statement to test something
This commit is contained in:
parent
3d3c5f708e
commit
0baad46298
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None:
|
||||||
|
|
||||||
while True: # pylint: disable=too-many-nested-blocks
|
while True: # pylint: disable=too-many-nested-blocks
|
||||||
message = json.loads(await websocket.recv())
|
message = json.loads(await websocket.recv())
|
||||||
|
logger.debug("Received message from WebSocket:\n%s", json.dumps(message))
|
||||||
if message['event'] in ('token expiring', 'token expired'):
|
if message['event'] in ('token expiring', 'token expired'):
|
||||||
logger.info("Received token expiring/expired event. Refreshing token.")
|
logger.info("Received token expiring/expired event. Refreshing token.")
|
||||||
websocket_credentials = await retrieve_websocket_credentials(coginstance)
|
websocket_credentials = await retrieve_websocket_credentials(coginstance)
|
||||||
|
|
Loading…
Reference in a new issue