Skip to content

Commit

Permalink
Convert AppCDS output messages to warnings when the creation process …
Browse files Browse the repository at this point in the history
…fails

Relates to: #26004
  • Loading branch information
geoand committed Jun 10, 2022
1 parent 2deaf45 commit e96440d
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -165,12 +165,13 @@ private Path createClassesLst(JarBuildItem jarResult,
}
exitCode = processBuilder.start().waitFor();
} catch (Exception e) {
log.debug("Failed to launch process used to create '" + CLASSES_LIST_FILE_NAME + "'.", e);
log.warn("Failed to launch process used to create '" + CLASSES_LIST_FILE_NAME + "'. using the following command:'"
+ command + "'", e);
return null;
}

if (exitCode != 0) {
log.debugf("The process that was supposed to create AppCDS exited with error code: %d.", exitCode);
log.warnf("Command '%s' that was supposed to create AppCDS exited with error code: %d.", command, exitCode);
return null;
}

Expand Down

0 comments on commit e96440d

Please sign in to comment.