-
Notifications
You must be signed in to change notification settings - Fork 165
Remove Non-Essential Debug Logs #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Non-Essential Debug Logs #126
Conversation
Co-authored-by: Ishaan Dey <ishaan1013@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes non-essential debug logging statements from the file changes functionality to clean up console output and simplify the codebase.
- Removed extensive
[FILE_CHANGES_DEBUG]console logs from GitHub API operations, git operations, and router endpoints - Simplified error handling by removing timing measurements from debug logs
- Maintained essential error logging while eliminating verbose operational logging
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| apps/server/src/utils/github-file-changes.ts | Removed debug logs for API calls, timing measurements, and file processing details |
| apps/server/src/utils/git-operations.ts | Eliminated debug logs for git commands, timing, file processing, and status checks |
| apps/server/src/files/router.ts | Removed debug logs for route handling, task validation, and response timing |
| `[FILE_CHANGES_DEBUG] Stats map created - entries: ${statsMap.size}` | ||
| ); | ||
|
|
||
| // Process committed changes |
Copilot
AI
Aug 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The variable processedFiles was removed but the loop that incremented it remains. Consider adding a comment explaining the purpose of this loop since the processing logic is now less obvious without the debug counters.
| // Process committed changes | |
| // Process committed changes | |
| // Iterate over each line in statusLines to update the allFiles map with parsed file change information. | |
| // This replaces the previous debug counter and ensures all relevant file changes are recorded. |
| `[FILE_CHANGES_DEBUG] Final response - taskId: ${taskId}, fileChanges: ${fileChanges.length}, additions: ${diffStats.additions}, deletions: ${diffStats.deletions}, duration: ${duration}ms` | ||
| ); | ||
|
|
||
| res.json({ |
Copilot
AI
Aug 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The startTime variable is no longer defined in this function since the timing debug logs were removed, but it may still be referenced elsewhere. Ensure all references to startTime have been properly cleaned up.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Changes
Tests
Documentation
Follow-up Recommendations
Open in Shadow