From 994327772a03c394a48c15062e59630963899c72 Mon Sep 17 00:00:00 2001 From: Ayush-1812 Date: Sun, 23 Aug 2026 09:56:38 +0530 Subject: [PATCH] chore: remove leftover debug console.log statements Debug logging left in component code shipped in the production bundle and wrote to every visitor's console. - SistentNavigation/intra-page.js: drop console.log(anchors), which logged a NodeList on every Sistent documentation page load. - Learn-Layer5/Course-Overview: drop two console.log calls embedded in JSX that fired on every render. - Home/So-Special-Section: drop commented-out console.log calls. Error reporting in catch blocks is intentional and stays, but the two sites that used console.log now use console.error, matching what they report. The console.log in Sistent getting-started/usage is deliberately left alone: it is inside a documentation code sample shown to readers, not executed code. Fixes #7993 Co-Authored-By: Claude Opus 5 Signed-off-by: Ayush-1812 --- src/components/SistentNavigation/intra-page.js | 1 - src/sections/Home/So-Special-Section/index.js | 2 -- src/sections/Learn-Layer5/Course-Overview/index.js | 5 ----- src/sections/Meshery/Features-Col/index.js | 2 +- .../Individual-Integrations/CatalogGrid.js | 2 +- 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/components/SistentNavigation/intra-page.js b/src/components/SistentNavigation/intra-page.js index 6c74497a95bbb0..6773c3ffb5aded 100644 --- a/src/components/SistentNavigation/intra-page.js +++ b/src/components/SistentNavigation/intra-page.js @@ -65,7 +65,6 @@ function IntraPage() { useEffect(() => { const anchors = document.querySelectorAll(".main-content > a"); - console.log(anchors); if (anchors) { setContents( Array.from(anchors).map((a) => ({ diff --git a/src/sections/Home/So-Special-Section/index.js b/src/sections/Home/So-Special-Section/index.js index 853aa88a7a1e6d..ce42a8df96c8ff 100644 --- a/src/sections/Home/So-Special-Section/index.js +++ b/src/sections/Home/So-Special-Section/index.js @@ -121,8 +121,6 @@ const SoSpecial = () => {