From 12fb5d6f4a4c6e211c33e393e9a8536081500201 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Thu, 9 Jun 2022 17:02:32 +0300 Subject: [PATCH] Convert AppCDS output messages to warnings when the creation process fails Relates to: #26004 --- .../io/quarkus/deployment/pkg/steps/AppCDSBuildStep.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/AppCDSBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/AppCDSBuildStep.java index afa39f075f748..66156a099d60c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/AppCDSBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/AppCDSBuildStep.java @@ -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.debugf("Command '%s' that was supposed to create AppCDS exited with error code: %d.", command, exitCode); return null; }