Skip to content

Commit 00da5b7

Browse files
committed
fix: update for logging
Signed-off-by: Chao Wang <chaowan@redhat.com>
1 parent f33a7eb commit 00da5b7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/java/com/redhat/exhort/providers/JavaMavenProvider.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ private String selectMvnRuntime(final Path manifestPath) {
383383
try {
384384
// verify maven wrapper is accessible
385385
Operations.runProcess(manifest.getParent(), mvnw, ARG_VERSION);
386-
log.fine(String.format("using maven wrapper from : %s", mvnw));
386+
if (debugLoggingIsNeeded()) {
387+
log.info(String.format("using maven wrapper from : %s", mvnw));
388+
}
387389
return mvnw;
388390
} catch (Exception e) {
389391
log.warning(
@@ -393,7 +395,9 @@ private String selectMvnRuntime(final Path manifestPath) {
393395
}
394396
// If maven wrapper is not requested or not accessible, fall back to use mvn
395397
String mvn = Operations.getExecutable(MVN, ARG_VERSION);
396-
log.fine(String.format("using mvn executable from : %s", mvn));
398+
if (debugLoggingIsNeeded()) {
399+
log.info(String.format("using mvn executable from : %s", mvn));
400+
}
397401
return mvn;
398402
}
399403

0 commit comments

Comments
 (0)