YARN-8208. Add log statement for Docker client configuration file at INFO level. Contributed by Yesha Vora

(cherry picked from commit 914d6b5cb1)
This commit is contained in:
Billie Rinaldi 2018-04-27 06:10:32 -07:00
parent 386c39cd84
commit b20f68ddaa
2 changed files with 3 additions and 4 deletions

View File

@ -232,6 +232,7 @@ public class ServiceApiUtil {
if (!StringUtils.isEmpty(dockerClientConfig)) {
Path dockerClientConfigPath = new Path(dockerClientConfig);
FileSystem fs = dockerClientConfigPath.getFileSystem(conf);
LOG.info("The supplied Docker client config is " + dockerClientConfig);
if (!fs.exists(dockerClientConfigPath)) {
throw new IOException(
"The supplied Docker client config does not exist: "

View File

@ -118,10 +118,8 @@ public final class DockerClientConfigHandler {
tokenId.getKind(), new Text(registryUrl));
credentials.addToken(
new Text(registryUrl + "-" + applicationId), token);
if (LOG.isDebugEnabled()) {
LOG.debug("Token read from Docker client configuration file: "
+ token.toString());
}
LOG.info("Token read from Docker client configuration file: "
+ token.toString());
}
}
return credentials;