Skip to content

Commit

Permalink
Change the string concatenation method to use a placeholder approach …
Browse files Browse the repository at this point in the history
…for logging. (#298)
  • Loading branch information
Milkkker authored Oct 12, 2023
1 parent 72e0790 commit dc2b8b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void genToken() throws Throwable {
if (delegationToken == null && (currUser = UserGroupInformation.getCurrentUser())
!= UserGroupInformation.getLoginUser()) {

log.info(String.format("set %s delegation token", currUser.getShortUserName()));
log.info("set {} delegation token", currUser.getShortUserName());
String token = TokenWrappingHMSHandler.getToken();
setTokenStr2Ugi(currUser, token);
delegationToken = token;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl

String shortName = currUser.getShortUserName();
token = baseHandler.get_delegation_token(shortName, shortName);
log.info(String.format("get delegation token by user %s", shortName));
log.info("get delegation token by user {}", shortName);
tokens.set(token);
}
return method.invoke(baseHandler, args);
Expand Down

0 comments on commit dc2b8b3

Please sign in to comment.