Skip to content

Commit

Permalink
[CORAL-HIVE] Improve Artifacts Resolver Log. (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 authored Feb 4, 2024
1 parent 1fa2a10 commit f200f21
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2020-2023 LinkedIn Corporation. All rights reserved.
* Copyright 2020-2024 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand Down Expand Up @@ -128,8 +128,7 @@ private ResolveReport getDependencies(String udfClassName, DependencySpec depend
try {
final ResolveReport report = _ivyInstance.resolve(md, resolveOptions);
if (report.hasError()) {
LOG.warn(
String.format("Unable to fetch dependencies for UDF %s: %s", udfClassName, report.getAllProblemMessages()));
LOG.warn("Unable to fetch dependencies for UDF {}: {}", udfClassName, report.getAllProblemMessages());
}
return report;
} catch (ParseException | IOException e) {
Expand All @@ -142,11 +141,11 @@ private static IvySettings setupIvySettings() {
try {
if (System.getenv().containsKey(IVY_SETTINGS_LOCATION)) {
File settingsFile = getSettingsFile();
LOG.info("Reading Ivy settings from: " + settingsFile);
LOG.info("Reading Ivy settings from: {}.", settingsFile);
settings.load(settingsFile);
} else {
final URL settingsUrl = ArtifactsResolver.class.getClassLoader().getResource(IVY_SETTINGS_FILE_NAME);
LOG.info("Reading Ivy settings from: " + settingsUrl);
LOG.info("Reading Ivy settings from: {}.", settingsUrl);
settings.load(settingsUrl);
}
} catch (ParseException | IOException e) {
Expand Down Expand Up @@ -202,7 +201,7 @@ private static int getIvyLogLevel() {
try {
return Integer.parseInt(r);
} catch (NumberFormatException ignore) {
LOG.warn("Could not parse number: " + r + " corresponding to key: " + IVY_LOG_LEVEL);
LOG.warn("Could not parse number: {} corresponding to key: {}.", r, IVY_LOG_LEVEL);
return Message.MSG_INFO;
}
}
Expand Down

0 comments on commit f200f21

Please sign in to comment.