Added account state to hedger startup.

This commit is contained in:
Geoff Taylor 2021-08-09 11:35:02 +01:00
parent 9b6f33d7e6
commit 4483db480b
1 changed files with 3 additions and 0 deletions

View File

@ -118,6 +118,9 @@ ws.ping_interval = 10
ws_pong_disposable = ws.pong.subscribe(mango.FileToucherObserver("/var/tmp/mango_healthcheck_ws_pong"))
ws.open()
logging.info(f"Current assets in account {account.address} (owner: {account.owner}):")
mango.TokenValue.report([asset for asset in account.net_assets if asset is not None], logging.info)
# Wait - don't exit. Exiting will be handled by signals/interrupts.
waiter = threading.Event()
try: