Skip to content

Commit

Permalink
move stacktrace to log error message
Browse files Browse the repository at this point in the history
  • Loading branch information
voxparcxls committed Feb 1, 2024
1 parent a40cfdb commit 86952f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cws-installer/src/main/java/jpl/cws/task/CwsInstaller.java
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ private static void getKeystorePassword() {
try {
cws_keystore_storepass = Files.readString(Paths.get(storepassFilePath)).trim();
} catch (IOException e) {
log.error("ERROR: " + e.printStackTrace());
log.error("Read-in Keystore Storepass ERROR: " + e.getMessage());
}
}
}
Expand Down Expand Up @@ -2511,9 +2511,10 @@ private static int validateKeystoreTruststore() {
}
} catch (Exception e) {
print(" [WARNING]");
print(" The path '" + cws_tomcat_conf + SEP + "' may not contain .keystore file OR holds a keystore that is mismatched with password in '~/.cws/creds' or cws_keystore_storepass configuration.");
print(" The path '" + cws_tomcat_conf + SEP + "' ");
print(" may NOT contain .keystore file OR holds a keystore that is mismatched with password in '~/.cws/creds' or cws_keystore_storepass configuration.");
print("");
log.error("ERROR: " + e.printStackTrace());
log.error("Keystore Storepass ERROR: " + e.getMessage());
return 1;
}
return 0; // OK
Expand Down

0 comments on commit 86952f5

Please sign in to comment.