Skip to content

[log] Add debug logging to under-instrumented Go files - #46964

Merged
pelikhan merged 1 commit into
mainfrom
add-go-debug-logging-20260721-715259cde6bf0673
Jul 21, 2026
Merged

[log] Add debug logging to under-instrumented Go files#46964
pelikhan merged 1 commit into
mainfrom
add-go-debug-logging-20260721-715259cde6bf0673

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary\n\nAdds structured debug logging to five previously under-instrumented Go files using the existing pkg/logger package. Each file receives a module-scoped logger instance and Printf/Print calls at key execution points to improve observability and debuggability.\n\n### Changed files\n\n| File | Logger tag | Coverage added |\n|------|-----------|----------------|\n| pkg/cli/bootstrap_profile_actions_repo.go | cli:bootstrap_profile_actions_repo | Variable/secret/Copilot auth action entry and skip decisions |\n| pkg/cli/bootstrap_profile_git.go | cli:bootstrap_profile_git | Commit-and-push flow, git command invocations |\n| pkg/cli/bootstrap_profile_helpers.go | cli:bootstrap_profile_helpers | Text value resolution path (env var, non-interactive, default), browser launcher |\n| pkg/console/timezone.go | console:timezone | Timezone override setting, time formatting with configured location |\n| pkg/workflow/compiler_yaml_line_writer.go | workflow:compiler_yaml_line_writer | YAML block scalar state transitions (detect header, enter/leave payload) |\n\n### Pattern applied\n\nEach file follows the same convention already used elsewhere in the codebase:\n\n```go\nvar xyzLog = logger.New(\

Generated by PR Description Updater for #46964 · 37.6 AIC · ⌖ 4.45 AIC · ⊞ 4.8K ·

Add namespace-based debug loggers (following the pkg:filename convention
from pkg/logger) to five files that previously had no logging but contain
real branching/control-flow logic:

- cli/bootstrap_profile_git.go: git commit-and-push flow
- cli/bootstrap_profile_actions_repo.go: repo variable/secret/copilot-auth actions
- cli/bootstrap_profile_helpers.go: value resolution + browser launch
- workflow/compiler_yaml_line_writer.go: YAML block-scalar state transitions
- console/timezone.go: time-location override handling

All log arguments are side-effect-free. Loggers are no-ops unless enabled
via the DEBUG environment variable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Jul 21, 2026
@pelikhan
pelikhan merged commit 013a2bf into main Jul 21, 2026
@pelikhan
pelikhan deleted the add-go-debug-logging-20260721-715259cde6bf0673 branch July 21, 2026 04:33
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.82.15

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