From c2a2b36dfc77f1753f2aec2b8131fd91ab070e5d Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 08:06:33 +0000 Subject: [PATCH] Rain: add debug log to diagnose missing drops --- public/index.html | 2 +- public/live.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 37d31ae6..d7770d5e 100644 --- a/public/index.html +++ b/public/index.html @@ -90,7 +90,7 @@ - + diff --git a/public/live.js b/public/live.js index 54076156..8c43daa1 100644 --- a/public/live.js +++ b/public/live.js @@ -1796,7 +1796,8 @@ function addRainDrop(pkt) { if (!rainCanvas || !matrixRain) return; const rawHex = pkt.raw || pkt.raw_hex || (pkt.packet && pkt.packet.raw_hex) || ''; - if (!rawHex) return; // no real packet bytes — don't fake it + console.log('[rain] pkt keys:', Object.keys(pkt), 'raw:', !!pkt.raw, 'raw_hex:', !!pkt.raw_hex, 'packet.raw_hex:', !!(pkt.packet && pkt.packet.raw_hex), 'rawHex len:', rawHex.length); + if (!rawHex) return; const decoded = pkt.decoded || {}; const hops = decoded.path?.hops || []; const hopCount = Math.max(1, hops.length);