YARN-8208. Add log statement for Docker client configuration file at INFO level. Contributed by Yesha Vora
This commit is contained in:
parent
84ecfe3ceb
commit
914d6b5cb1
@ -232,6 +232,7 @@ private static void validateDockerClientConfiguration(Service service,
|
||||
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: "
|
||||
|
@ -118,10 +118,8 @@ public static Credentials readCredentialsFromConfigFile(Path configFile,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user