From 6c4853c88cac2e3d43e56ffa1a14974271c69b40 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sun, 8 Mar 2026 18:37:55 +0100 Subject: [PATCH] [fix](trx-frontend-http): remove per-packet console.log from APRS handler During history restore with thousands of APRS packets, the console.log in addAprsPacket was called for every entry, slowing the replay down significantly. Remove it entirely. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: Stan Grams --- .../trx-frontend/trx-frontend-http/assets/web/plugins/aprs.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/plugins/aprs.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/plugins/aprs.js index eb56a3d..dfdb0ba 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/plugins/aprs.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/plugins/aprs.js @@ -343,9 +343,6 @@ window.resetAprsHistoryView = function() { }; function addAprsPacket(pkt) { - const tag = pkt.crcOk ? "[APRS]" : "[APRS-CRC-FAIL]"; - console.log(tag, `${pkt.srcCall}>${pkt.destCall}${pkt.path ? "," + pkt.path : ""}: ${pkt.info}`, pkt); - const tsMs = Number.isFinite(pkt.ts_ms) ? Number(pkt.ts_ms) : Date.now(); pkt._tsMs = tsMs; pkt._ts = new Date(tsMs).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", second: "2-digit" });