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: quarkusio#26004

(cherry picked from commit e96440d)
  • Loading branch information
geoand authored and gsmet committed Jun 13, 2022
1 parent 66a206d commit 791eab5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,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 791eab5

Please sign in to comment.