From 66d98f4d33c0e00b4fff970f3582151f5deb2494 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 9 May 2026 21:10:16 -0500 Subject: [PATCH] fix(frontend): clean up failed ping error logging in dev tools Replace raw console.log(e) dumps with console.warn containing just the human-readable message, suppressing the noisy HttpError stack trace. --- .../components/messages/ConversationDropDownMenu.vue | 2 +- meshchatx/src/frontend/components/ping/PingPage.vue | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/meshchatx/src/frontend/components/messages/ConversationDropDownMenu.vue b/meshchatx/src/frontend/components/messages/ConversationDropDownMenu.vue index 5c76aca..1577759 100644 --- a/meshchatx/src/frontend/components/messages/ConversationDropDownMenu.vue +++ b/meshchatx/src/frontend/components/messages/ConversationDropDownMenu.vue @@ -355,8 +355,8 @@ export default { // show result DialogUtils.alert(info.join("\n")); } catch (e) { - console.log(e); const message = e.response?.data?.message ?? this.$t("messages.ping_failed"); + console.warn("Ping failed:", message); DialogUtils.alert(message); } finally { ToastUtils.dismiss(pingToastKey); diff --git a/meshchatx/src/frontend/components/ping/PingPage.vue b/meshchatx/src/frontend/components/ping/PingPage.vue index b01e41c..ae9769c 100644 --- a/meshchatx/src/frontend/components/ping/PingPage.vue +++ b/meshchatx/src/frontend/components/ping/PingPage.vue @@ -284,10 +284,9 @@ export default { return; } - console.log(e); - // add ping error to results - const message = e.response?.data?.message ?? e; + const message = e.response?.data?.message ?? e.message ?? String(e); + console.warn("Ping failed:", message); this.addPingResult(`seq=${this.seq} error=${message}`); this.lastPingSummary = { error: typeof message === "string" ? message : JSON.stringify(message),