From 7db315e1f1f32cdbfb05664eaa7262b01afd81ed Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Thu, 29 Jul 2021 12:31:38 +1000 Subject: [PATCH] Fix warnings on startup failure --- .../http/runtime/devmode/VertxHttpHotReplacementSetup.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/VertxHttpHotReplacementSetup.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/VertxHttpHotReplacementSetup.java index 3a81320c0c37a..e9e462859ffa1 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/VertxHttpHotReplacementSetup.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/VertxHttpHotReplacementSetup.java @@ -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; @@ -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(); }