YARN-4910. Fix incomplete log info in ResourceLocalizationService (Jun Gong via Varun Saxena)

This commit is contained in:
Varun Saxena 2016-08-08 22:12:53 +05:30
parent 6529fe9345
commit 37d939a453
1 changed files with 3 additions and 1 deletions

View File

@ -1221,8 +1221,10 @@ public class ResourceLocalizationService extends CompositeService
tokenOut = tokenOut =
lfs.create(nmPrivateCTokensPath, EnumSet.of(CREATE, OVERWRITE)); lfs.create(nmPrivateCTokensPath, EnumSet.of(CREATE, OVERWRITE));
LOG.info("Writing credentials to the nmPrivate file " LOG.info("Writing credentials to the nmPrivate file "
+ nmPrivateCTokensPath.toString() + ". Credentials list: "); + nmPrivateCTokensPath.toString());
if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) {
LOG.debug("Credentials list in " + nmPrivateCTokensPath.toString()
+ ": ");
for (Token<? extends TokenIdentifier> tk : credentials for (Token<? extends TokenIdentifier> tk : credentials
.getAllTokens()) { .getAllTokens()) {
LOG.debug(tk + " : " + buildTokenFingerprint(tk)); LOG.debug(tk + " : " + buildTokenFingerprint(tk));