aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-17 19:22:12 -0700
committerAdam Soltys <[email protected]>2026-03-17 19:22:12 -0700
commite3ed16def9bee6947fd5d929b90f246a8e5ec2dc (patch)
tree754882761733e684c7bebf1fe61925b3882d41e4 /lib
parentab47682bf20e79931bdb3a4b65196c41c1c81275 (diff)
downloadcoinos-server-e3ed16def9bee6947fd5d929b90f246a8e5ec2dc.tar.gz
coinos-server-e3ed16def9bee6947fd5d929b90f246a8e5ec2dc.zip
quieter logs
Diffstat (limited to 'lib')
-rw-r--r--lib/ark.ts23
-rw-r--r--lib/health.ts4
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<boolean> {
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<boolean> {
// 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;