refactor(examples): use SLF4J parameterized logging instead of string concatenation#19187
Merged
yihua merged 1 commit intoJul 4, 2026
Merged
Conversation
… concatenation
Convert the repeated 'Starting commit' log statements in
HoodieWriteClientExample from + concatenation to {} placeholders.
Mechanical and behavior-preserving.
This was referenced Jul 4, 2026
hudi-agent
reviewed
Jul 4, 2026
hudi-agent
left a comment
Contributor
There was a problem hiding this comment.
Thanks for working on this! This PR converts string-concatenation log statements in HoodieWriteClientExample to SLF4J parameterized logging, which is a mechanical and behavior-preserving change. No issues flagged from this automated pass — a Hudi committer or PMC member can take it from here for a final review.
cc @yihua
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe the issue this Pull Request addresses
The
logcalls inHoodieWriteClientExamplebuild their message with+string concatenation. This eagerly builds the string even when the level is disabled and reads worse than a parameterized statement. This PR converts them to SLF4J{}templating. Part of the ongoing logging cleanup (follows #19155, #19156, #19157, #19158, #19159, #19160, #19184, #19185, #19186).Summary and Changelog
log.info("Starting commit " + newCommitTime)statements inHoodieWriteClientExampleto{}placeholders. Mechanical and behavior-preserving.Impact
none - example-only, purely mechanical logging change.
Risk Level
none
Documentation Update
none
Contributor's checklist