Skip to content

[log] Add debug logging to un-logged pkg files#47909

Merged
pelikhan merged 1 commit into
mainfrom
add-logging-mcp-scripts-release-executable-8c712ec7a8dd0201
Jul 25, 2026
Merged

[log] Add debug logging to un-logged pkg files#47909
pelikhan merged 1 commit into
mainfrom
add-logging-mcp-scripts-release-executable-8c712ec7a8dd0201

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Summary

Adds debug logging to three previously un-instrumented pkg files using the existing logger package.

Changes

File Logger namespace Log points added
pkg/cli/release_candidates.go cli:release_candidates Filtering input count, compatible candidate count, newer-candidate count
pkg/fileutil/executable.go fileutil:executable Validate entry/exit (path before/after), resolve attempt, resolve failure
pkg/workflow/mcp_setup_scripts.go workflow:mcp_setup_scripts MCP scripts enabled/skipped, tool count, per-tool type (js/sh/py/go)

Pattern

Each file follows the same instrumentation pattern:

  1. Import github.com/github/gh-aw/pkg/logger
  2. Declare a package-level logger.New("<namespace>") variable
  3. Add Printf/Print calls at entry, exit, and branch points

Impact

  • Breaking change: No
  • API change: No
  • Behaviour change: No — logging is conditional on debug mode; no logic altered
  • Test change: None required

Generated by PR Description Updater for #47909 · sonnet46 · 31 AIC · ⌖ 7.41 AIC · ⊞ 4.8K ·

Add per-file namespace loggers to three genuinely un-logged files that
carry real branching logic:

- workflow/mcp_setup_scripts.go: log setup entry, tool-file count, and
  per-tool script language (js/sh/py/go)
- cli/release_candidates.go: log compatibility-filter and newer-than-current
  input/output counts
- fileutil/executable.go: log executable path validation/resolution entry,
  success, and PATH lookup failures

All logger arguments are side-effect-free (lengths, bools, strings, error
values), following the existing logger.New("pkg:filename") convention.

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 25, 2026
@pelikhan
pelikhan merged commit d67929a into main Jul 25, 2026
@pelikhan
pelikhan deleted the add-logging-mcp-scripts-release-executable-8c712ec7a8dd0201 branch July 25, 2026 04:34
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.83.3

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