Skip to content

[log] log: add debug logging to 5 Go files across workflow and cli packages#21445

Merged
pelikhan merged 1 commit intomainfrom
log/add-debug-logging-5-files-f8a4a791e4626ee8
Mar 17, 2026
Merged

[log] log: add debug logging to 5 Go files across workflow and cli packages#21445
pelikhan merged 1 commit intomainfrom
log/add-debug-logging-5-files-f8a4a791e4626ee8

Conversation

@github-actions
Copy link
Contributor

Add meaningful debug log statements to 5 Go files that previously had no observability in key functions.

Changes

  • pkg/workflow/safe_outputs_config_helpers.go: Added safeOutputsConfigGenLog.Printf(...) to generateTargetConfigWithRepos — new function from the latest cross-repo target_repo commit that had no logging
  • pkg/workflow/lock_schema.go: Added two lockSchemaLog.Printf(...) calls to GenerateLockMetadata — logs schema version/strict/stopTime on entry, and logs when compiler version is embedded in release builds
  • pkg/workflow/github_tool_to_toolset.go: Added githubToolToToolsetLog.Printf(...) at the end of init() — reports how many tool-to-toolset mappings were loaded from the embedded JSON (the logger was declared but never called)
  • pkg/workflow/compiler_yaml_ai_execution.go: Added compilerYamlLog.Printf(...) to generateEngineExecutionSteps — logs engine ID and step count, consistent with other generateX functions in the same file
  • pkg/cli/codemod_github_app.go: Added githubAppCodemodLog.Print(...) before each return true in hasDeprecatedAppField — identifies which frontmatter section contains the deprecated app: field

Test plan

  • make build passes with no errors
  • go test ./pkg/workflow/... ./pkg/cli/... passes (all tests green)
  • No new log calls compute values or cause side effects — all arguments are simple field reads or len() calls

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

Generated by Go Logger Enhancement ·

  • expires on Mar 19, 2026, 8:37 PM UTC

Add meaningful debug log statements to functions that previously had
no observability, improving traceability during development and debugging.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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