Skip to content

Fix #6840: stop passing a Printf arg to the structured digest log - #6842

Merged
squakez merged 1 commit into
apache:mainfrom
harshilv17:fix/6840-odd-kv-logging
Sep 23, 2026
Merged

squakez merged 1 commit into
apache:mainfrom
harshilv17:fix/6840-odd-kv-logging

Conversation

@harshilv17

@harshilv17 harshilv17 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #6840

Logger.Info takes key-value pairs, not a format string — Infof is the Printf variant. The digest-changed log in build_kit.go passed "...%s...", integration.Name to Info, so zap saw a key with no value and raised dpanic, and the %s never interpolated.

Dropped the argument rather than switching to Infof: the action's logger is built by rlog.ForIntegration(target), so ns and name are already on every record.

Checked the rest of the repo with an AST pass over all Info/Debug/Error call sites — this was the only parity violation. Existing tests already cover this branch.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Unit test coverage report - coverage decreased from 63.8% to 63.7% (-0.1%)

@harshilv17

Copy link
Copy Markdown
Contributor Author

@squakez ig no issues, right?
and ready to merge...

@squakez
squakez merged commit 32f14aa into apache:main Sep 23, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minor logging bug

2 participants