Skip to content

[log] Add debug logging to 5 pkg/ files#19455

Merged
pelikhan merged 2 commits intomainfrom
log/add-debug-logging-20260303-d8fb6062945fddf2
Mar 3, 2026
Merged

[log] Add debug logging to 5 pkg/ files#19455
pelikhan merged 2 commits intomainfrom
log/add-debug-logging-20260303-d8fb6062945fddf2

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 3, 2026

Adds meaningful debug logging to 5 Go files that were missing log calls or had declared loggers that were never used.

Files changed

  • pkg/workflow/agent_validation.go — Added logging to validateMaxTurnsSupport, validateMaxContinuationsSupport, and validateWebSearchSupport to trace feature compatibility checks with engine ID and config values.

  • pkg/workflow/compiler_safe_outputs_core.go — Added logging to hasCustomTokenSafeOutputs and collectBaseSafeOutputConfigs. The consolidatedSafeOutputsLog variable was declared but never used.

  • pkg/cli/trial_repository.go — Added logging to cleanupTrialRepository, cloneTrialHostRepository, writeWorkflowToTrialDir, and modifyWorkflowForTrialMode to trace repository lifecycle operations during trial mode.

  • pkg/cli/generate_action_metadata_command.go — Added logging to the file processing loop in GenerateActionMetadataCommand, and to generateActionYml and generateReadme to surface per-action generation progress.

  • pkg/parser/import_field_extractor.go — Added logging at function entry with content size, engine config detection, and final ImportsResult summary in toImportsResult.

Test plan

  • make build passes with no compilation errors
  • go vet ./pkg/workflow/... ./pkg/parser/... ./pkg/cli/... passes with no issues
  • Debug output is visible when running with DEBUG=workflow:agent_validation etc.

🤖 Generated with [Claude Code]((claude.com/redacted)

Generated by Go Logger Enhancement ·

  • expires on Mar 5, 2026, 8:36 PM UTC

- workflow/agent_validation: log max-turns, max-continuations, and
  web-search feature validation with engine ID and config details
- workflow/compiler_safe_outputs_core: log custom-token detection
  and base config collection results (logger was declared but unused)
- cli/trial_repository: log repository lifecycle operations including
  cleanup, clone, write, modify, and commit/push steps
- cli/generate_action_metadata_command: log file processing loop
  progress and per-action yml/README generation
- parser/import_field_extractor: log field extraction entry with
  content size, engine config detection, and final result summary

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation enhancement New feature or request labels Mar 3, 2026
@pelikhan pelikhan merged commit a8a464c into main Mar 3, 2026
48 checks passed
@pelikhan pelikhan deleted the log/add-debug-logging-20260303-d8fb6062945fddf2 branch March 3, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant