-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16357. Fix log format in DFSUtilClient #3729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDFS-16357. Fix log format in DFSUtilClient #3729
Conversation
|
💔 -1 overall
This message was automatically generated. |
| Boolean cached = localAddrMap.get(addr.getHostAddress()); | ||
| if (cached != null) { | ||
| LOG.trace("Address {} is {} local", targetAddr, (cached ? "" : "not")); | ||
| LOG.trace("Address " + targetAddr + (cached ? " is local" : " is not local")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you reverting back from logger format to normal string concat. better not to ditch the {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, @ayushtkn , but the corrected format seems not that perfect. do you have better ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The present change Looks good to me, What is the problem in that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a feeling ,not that perfect ,but current change is a relative simple fix way. btw, we don't need to add the test case for this kind of log info fix ,right ? @ayushtkn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeps, not required
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
Merged. Thanx @GuoPhilipse for the contribution |
…d by guophilipse. Signed-off-by: Ayush Saxena <[email protected]>
if address is local ,there will be additional space in the log .we can improve it to look proper