From e3ed16def9bee6947fd5d929b90f246a8e5ec2dc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 17 Mar 2026 19:22:12 -0700 Subject: quieter logs --- lib/ark.ts | 23 +++++++++++++---------- lib/health.ts | 4 ---- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/lib/ark.ts b/lib/ark.ts index ef6713ef..3c2a3087 100644 --- a/lib/ark.ts +++ b/lib/ark.ts @@ -73,16 +73,19 @@ export const refreshArkWallet = async (force = false) => { const dust = Number(info.dust); const recoverableDisplay = balance.recoverable > dust ? balance.recoverable : 0; - l( - "ark wallet check — available:", - balance.available, - "recoverable:", - recoverableDisplay, - "boarding:", - balance.boarding.confirmed, - "pending:", - balance.boarding.unconfirmed, - ); + + if (balance.available === 0 || recoverableDisplay > 0 || balance.boarding.unconfirmed > 0) { + l( + "ark wallet check — available:", + balance.available, + "recoverable:", + recoverableDisplay, + "boarding:", + balance.boarding.confirmed, + "pending:", + balance.boarding.unconfirmed, + ); + } // Recover swept/expired VTXOs (with backoff on repeated failures) const recoverableAboveDust = balance.recoverable > dust; diff --git a/lib/health.ts b/lib/health.ts index 9df90a46..5a2e63e2 100644 --- a/lib/health.ts +++ b/lib/health.ts @@ -40,7 +40,6 @@ async function checkLightningHealth(): Promise { const startTime = Date.now(); try { - l("health check: testing lightning connection..."); const info = await withTimeout(ln.getinfo(), RPC_TIMEOUT, "getinfo") as any; if (!info?.id) { @@ -73,9 +72,6 @@ async function checkLightningHealth(): Promise { // Ignore cleanup errors } - const duration = Date.now() - startTime; - l(`health check: passed in ${duration}ms, node: ${info.id.slice(0, 16)}...`); - return true; } catch (e: any) { const duration = Date.now() - startTime; -- cgit v1.2.3