From c0e6b78bc20d59d1fa039924b38e688ff095aa3c Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Mon, 6 Sep 2021 14:01:32 -0500 Subject: [PATCH] Reduce lnd log errors if watchtower disabled --- rootfs/standard/var/www/mynode/lightning_info.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/standard/var/www/mynode/lightning_info.py b/rootfs/standard/var/www/mynode/lightning_info.py index e57a131c..81d925f9 100644 --- a/rootfs/standard/var/www/mynode/lightning_info.py +++ b/rootfs/standard/var/www/mynode/lightning_info.py @@ -84,7 +84,8 @@ def update_lightning_info(): lightning_channels = lnd_get("/channels") lightning_channel_balance = lnd_get("/balance/channels") lightning_wallet_balance = lnd_get("/balance/blockchain") - lightning_watchtower_server_info = lnd_get_v2("/watchtower/server") + if is_watchtower_enabled(): + lightning_watchtower_server_info = lnd_get_v2("/watchtower/server") # Poll slower (make sure we gather data early) if lightning_update_count < 30 or lightning_update_count % 2 == 0: