diff --git a/avaje-jex-http3-flupke/src/main/java/io/avaje/jex/http3/flupke/FlupkeSystemLogger.java b/avaje-jex-http3-flupke/src/main/java/io/avaje/jex/http3/flupke/FlupkeSystemLogger.java index f95bdf80..3d8c803e 100644 --- a/avaje-jex-http3-flupke/src/main/java/io/avaje/jex/http3/flupke/FlupkeSystemLogger.java +++ b/avaje-jex-http3-flupke/src/main/java/io/avaje/jex/http3/flupke/FlupkeSystemLogger.java @@ -26,13 +26,12 @@ protected void log(String text) { @Override protected void log(String text, Throwable throwable) { - if (throwable == null) { - LOG.log(Level.ERROR, text); - return; - } - this.lock.lock(); try { + if (throwable == null) { + LOG.log(Level.ERROR, text); + return; + } LOG.log(Level.ERROR, text, throwable); } finally { this.lock.unlock();