[log] Add debug logging to workflow and CLI helpers#46124
Conversation
Add namespaced debug loggers to four previously un-instrumented files,
following the existing logger.New("pkg:filename") convention. All log
arguments are pre-computed, side-effect-free values.
- workflow/frontmatter_trigger_helpers: log deployment_status/workflow_run
condition building and rejected invalid state/conclusion values
- workflow/compiler_yaml_policy: log strict-mode and safe-update decisions
- workflow/compiler_yaml_normalize: log entry/exit (input/output sizes,
all-blank case) outside the hot loop
- cli/doctor_command: log which diagnostic path (auth vs repository) runs
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@copilot please run the
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Done on I ran
|
|
@copilot please run the
|
|
🎉 This pull request is included in a new release. Release: |
Summary
Adds namespaced debug logging to four packages using the existing
pkg/loggerinfrastructure. No logic changes.Changes
pkg/cli/doctor_command.gocli:doctor_commandpkg/workflow/compiler_yaml_normalize.goworkflow:compiler_yaml_normalizenormalizeBlankLinesentry (byte count); all-blank early-return; normalized output sizepkg/workflow/compiler_yaml_policy.goworkflow:compiler_yaml_policy--approvedisabling safe-updatepkg/workflow/frontmatter_trigger_helpers.goworkflow:frontmatter_trigger_helpersImplementation notes
logger.New("<namespace>")variable.Print/Printf; no new dependencies beyondpkg/logger.Commits
00698c230Add debug logging to workflow and CLI helpers34db7d0bdPlan: triage maintainer feedback and validations