[log] Add debug logging to 5 workflow and CLI files#2606
Merged
Conversation
Added meaningful debug logging statements to help with troubleshooting and development. Changes: - pkg/workflow/tools.go: Added logger for workflow defaults, command trigger configuration, and tool merging - pkg/workflow/safe_outputs.go: Added logger for safe-outputs extraction and enabled checks - pkg/workflow/firewall.go: Added logger for firewall configuration and enabled checks - pkg/cli/mcp_inspect.go: Added logger for MCP inspection operations and import merging - pkg/workflow/cache.go: Added logger for cache-memory configuration extraction and step generation All loggers follow the project's naming convention (pkg:filename) and use meaningful messages that provide context for debugging without causing side effects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
pelikhan
approved these changes
Oct 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Added meaningful debug logging statements to 5 Go files in the
pkg/directory to help with troubleshooting and development.Files Modified
pkg/workflow/tools.go - Added
toolsLogloggerpkg/workflow/safe_outputs.go - Added
safeOutputsLogloggerpkg/workflow/firewall.go - Added
firewallLogloggerpkg/cli/mcp_inspect.go - Added
mcpInspectLogloggerpkg/workflow/cache.go - Added
cacheLogloggerLogger Naming Convention
All loggers follow the project's naming convention (
pkg:filename):workflow:toolsworkflow:safe_outputsworkflow:firewallcli:mcp_inspectworkflow:cacheTesting
✅ Validated with
make build- no compilation errors✅ Tested with
DEBUG=* ./gh-aw compile dev- debug logs appear correctly✅ Logger arguments have no side effects
✅ Logging messages are meaningful and provide debugging context
Example Debug Output
🤖 Generated with Claude Code