Skip to content

Commit

Permalink
Merge pull request #19071 from stuartwdouglas/failure-warnings
Browse files Browse the repository at this point in the history
Fix warnings on startup failure
  • Loading branch information
stuartwdouglas authored Jul 30, 2021
2 parents 3582f13 + 7db315e commit c378694
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
import java.util.logging.LogManager;

import io.netty.handler.codec.http.HttpHeaderNames;
import io.netty.handler.codec.http.HttpResponseStatus;
Expand Down Expand Up @@ -50,6 +52,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 c378694

Please sign in to comment.