Skip to content

[log] Add debug logging to under-instrumented pkg/ files - #49896

Merged
pelikhan merged 1 commit into
mainfrom
go-logger-enhancement-20260803-85790cb79dcbf782
Aug 3, 2026
Merged

[log] Add debug logging to under-instrumented pkg/ files#49896
pelikhan merged 1 commit into
mainfrom
go-logger-enhancement-20260803-85790cb79dcbf782

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Overview

Adds pkg/logger debug instrumentation to five previously under-instrumented pkg/ files. Purely additive logging change — no functional, behavioral, or API changes.

Changed Files

File Namespace Logging Added
pkg/cli/docker_args_validation.go cli:docker_args_validation Logs rejected/invalid container mount paths, host mount paths, image refs, and file stat failures during Docker argument validation.
pkg/cli/token_usage_subagent.go cli:token_usage_subagent Logs subagent model request extraction outcomes, missing/failed stdio file access, and final attribution/mismatch counts.
pkg/linters/logfatallibrary/logfatallibrary.go linters:logfatallibrary Logs package skip (cmd/main), analysis start, and flagged log.Fatal* calls.
pkg/linters/rawloginlib/rawloginlib.go linters:rawloginlib Logs package skip (cmd/main), analysis start, and flagged raw log package calls.
pkg/parser/schema_safe_output_aliases.go parser:schema_safe_output_aliases Logs cases where safe-output alias suggestion extraction/matching fails or succeeds.

Notes

  • No new dependencies; each file adds a single logger.New(...) package-level var following the existing namespace convention.
  • No test changes; no breaking changes.
  • Debug output only surfaces when the corresponding DEBUG namespace is enabled (e.g. DEBUG=cli:*, DEBUG=linters:*, DEBUG=parser:*).

Generated by PR Description Updater for #49896 · auto · 63.5 AIC · ⌖ 4.5 AIC · ⊞ 6.9K ·

Adds namespaced pkg/logger loggers and log calls at meaningful
control-flow points (skip conditions, validation failures, diagnostic
emission, attribution results) to five files that previously had zero
logging: two AST-analysis linters (logfatallibrary, rawloginlib), a
CLI token-usage/docker-args validation pair, and a parser schema-alias
helper.
@github-actions github-actions Bot added automation enhancement New feature or request labels Aug 3, 2026
@pelikhan
pelikhan merged commit e8ef5d5 into main Aug 3, 2026
@pelikhan
pelikhan deleted the go-logger-enhancement-20260803-85790cb79dcbf782 branch August 3, 2026 04:40
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.84.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