-
Notifications
You must be signed in to change notification settings - Fork 86
Phase 1: Logger infrastructure for log reduction #1406
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
base: main
Are you sure you want to change the base?
Conversation
- Add trace() method to PinoLogger for very verbose logging - Add isDebugEnabled() and isTraceEnabled() helpers for conditional logging - Change default LOG_LEVEL from 'debug' to 'info' in both APIs This enables gated logging of expensive operations (like JSON.stringify) and prepares for downstream log level downgrade changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @amikofalvy's task —— View job PR Review: Logger Infrastructure for Log ReductionReviewing the logger infrastructure changes as a Staff Engineer and System Architect. Review Progress
SummaryThis PR introduces solid logging infrastructure improvements with minimal breaking changes. The implementation is clean and follows existing patterns, but there are several architectural and user impact considerations that should be addressed. Technical Implementation ✅Strengths:
Code Quality:
System Architecture & Design Concerns
|
Summary
trace()method toPinoLoggerfor very verbose loggingisDebugEnabled()andisTraceEnabled()helpers for conditional loggingLOG_LEVELfrom'debug'to'info'in both agents-run-api and agents-manage-apiMotivation
This is Phase 1 of the log reduction effort. These changes enable:
JSON.stringify()can be wrapped inif (logger.isDebugEnabled())checksLOG_LEVEL=infomeans production and local dev are quieter by defaultTest plan
LOG_LEVEL=infoshows only info/warn/error logsLOG_LEVEL=debugshows debug logs + aboveLOG_LEVEL=traceshows all logs including trace🤖 Generated with Claude Code