[Chore] Remove leftover debug console.log statements shipped to production - #7995
[Chore] Remove leftover debug console.log statements shipped to production#7995Ayush-1812 wants to merge 1 commit into
Conversation
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 layer5io#7993 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Ayush-1812 <ayushjangid5102@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (3)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe changes remove debug logging from navigation, home, and course overview components. Fetch failure handlers in Meshery components now use ChangesLogging cleanup
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This change removes production debug output and preserves intentional error reporting, with no actionable merge-blocking risk remaining beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/sections/Meshery/Features-Col/index.jsParsing error: The keyword 'import' is reserved src/sections/Meshery/Meshery-integrations/Individual-Integrations/CatalogGrid.jsParsing error: The keyword 'import' is reserved Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Preview deployment for PR #7995 removed. This PR preview was automatically pruned because we keep only the 3 most recently updated previews on GitHub Pages to stay within deployment size limits. If needed, push a new commit to this PR to generate a fresh preview. |
Description
This PR fixes #7993
Debug logging left behind in component code was shipping in the production bundle and writing to every visitor's browser console. This removes it.
src/components/SistentNavigation/intra-page.jsconsole.log(anchors).IntraPageis rendered bySistentLayout, so this logged aNodeListon every Sistent documentation page load.src/sections/Learn-Layer5/Course-Overview/index.jsconsole.logcalls embedded directly in JSX, which fired on every render of the course overview page.src/sections/Home/So-Special-Section/index.jsconsole.logcalls.src/sections/Meshery/Meshery-integrations/Individual-Integrations/CatalogGrid.jsconsole.log→console.errorin the fetchcatchblock.src/sections/Meshery/Features-Col/index.jsconsole.log→console.errorin the fetch.catchhandler.Notes for Reviewers
Course-Overviewlogs does not orphan any variable:availableServiceMeshesis still used at lines 47 and 54.src/sections/Projects/Sistent/getting-started/usage/index.js:95also contains aconsole.log, and is deliberately left untouched — it sits inside a documentation code-sample string displayed to readers as example code, not executed code.src/assets/images/learning-path/embed-test/embedded-design-embed1.jscontainsconsole.logcalls as well, but it is a vendored embed-test asset rather than site component code, so it is out of scope here.console.logremaining undersrc/in component code is the documentation sample noted above. All five modified files were syntax-checked before committing.Signed commits
Summary by CodeRabbit
Bug Fixes
Chores