Skip to content

Commit

Permalink
Move Launching JVM log to debug level
Browse files Browse the repository at this point in the history
Fixes #6183
  • Loading branch information
gastaldi authored and gsmet committed Dec 16, 2019
1 parent 79e8c62 commit 021e140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ public void startDev() {
.redirectErrorStream(true)
.redirectInput(ProcessBuilder.Redirect.INHERIT)
.directory(getWorkingDir());
System.out.printf("Launching JVM with command line: %s%n", pb.command().stream().collect(joining(" ")));
if (getLogger().isDebugEnabled()) {
getLogger().debug("Launching JVM with command line: {}", pb.command().stream().collect(joining(" ")));
}
Process p = pb.start();
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
@Override
Expand Down
4 changes: 3 additions & 1 deletion devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,9 @@ public Set<Path> getPomFiles() {

public void run() throws Exception {
// Display the launch command line in dev mode
getLog().info("Launching JVM with command line: " + args.stream().collect(joining(" ")));
if (getLog().isDebugEnabled()) {
getLog().debug("Launching JVM with command line: " + args.stream().collect(joining(" ")));
}
process = new ProcessBuilder(args)
.inheritIO()
.directory(workingDir)
Expand Down

0 comments on commit 021e140

Please sign in to comment.