diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannel.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannel.java index 9ab2ba49179..7feede2287d 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannel.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannel.java @@ -563,10 +563,10 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor } else if (failure instanceof BadMessageException | failure instanceof IOException | failure instanceof TimeoutException) { + // No stack trace unless there is debug turned on + LOG.warn("{} {}",_request.getRequestURI(), failure.toString()); if (LOG.isDebugEnabled()) LOG.debug(_request.getRequestURI(), failure); - else - LOG.warn(_request.getRequestURI(), failure); } else {