Skip to content

Commit

Permalink
Fix warnings on startup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jul 29, 2021
1 parent 856d0c3 commit 7db315e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
import java.util.logging.LogManager;

import io.quarkus.dev.ErrorPageGenerators;
import io.quarkus.dev.console.DevConsoleManager;
Expand Down Expand Up @@ -42,6 +44,11 @@ public void run() {

@Override
public void handleFailedInitialStart() {
//remove for vert.x 4.2
//at the moment there is a TCCL error that is normally handled by the log filters
//but if startup fails it may not take effect
//it happens once per thread so it can completely mess up the console output, and hide the real issue
LogManager.getLogManager().getLogger("io.vertx.core.impl.ContextImpl").setLevel(Level.SEVERE);
VertxHttpRecorder.startServerAfterFailedStart();
}

Expand Down

0 comments on commit 7db315e

Please sign in to comment.