Skip to content

Remove debug logging from production pipeline#2

Closed
Ayansh0209 with Copilot wants to merge 2 commits into
mainfrom
copilot/remove-debug
Closed

Remove debug logging from production pipeline#2
Ayansh0209 with Copilot wants to merge 2 commits into
mainfrom
copilot/remove-debug

Conversation

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown

Debug console.log statements used during development were polluting production execution logs in the main branch. This PR strips standard output logging across the core pipeline to ensure a clean production environment.

Changes

  • Core Pipeline Cleanup: Removed all console.log debugging statements across backend/src (specifically targeting issueAnalyzer, issuePipeline, snippetFetcher, and related pipeline components) and frontend/app.
  • AST-based Extraction: Leveraged an AST transformation script (ts-morph) to safely prune exact ExpressionStatement nodes, avoiding regex-based partial deletions.
  • Error & Test Retention: Preserved console.error and console.warn statements for structured telemetry. Retained standard logging in test files (e.g., testIssueMapper.ts) to maintain test suite visibility.

Example

// Before
console.log(`\x1b[32m[issuePipeline] loaded retrieval index: ${index.files.length} files\x1b[0m`);
const files = (parsed.requestedFiles ?? []).slice(0, 15);
console.log(`\x1b[34m[issueAnalyzer] Gemini graph navigation returned ${files.length} files\x1b[0m`);

// After
const files = (parsed.requestedFiles ?? []).slice(0, 15);

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-map-ai Ready Ready Preview, Comment Jun 10, 2026 5:59am

Copilot AI changed the title Remove debug console.log statements from production pipeline Remove debug logging from production pipeline Jun 10, 2026
Copilot AI requested a review from Ayansh0209 June 10, 2026 05:59
@Ayansh0209 Ayansh0209 closed this Jun 28, 2026
@Ayansh0209
Ayansh0209 deleted the copilot/remove-debug branch June 28, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants