From 4483db480b834d789166bd2099641e180c4b6691 Mon Sep 17 00:00:00 2001 From: Geoff Taylor Date: Mon, 9 Aug 2021 11:35:02 +0100 Subject: [PATCH] Added account state to hedger startup. --- bin/hedger | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/hedger b/bin/hedger index ad3512a..030fe5e 100755 --- a/bin/hedger +++ b/bin/hedger @@ -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: