From 4cc8f4dcf6c64eade4d34b2456061a9b243f002b Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Wed, 16 May 2018 17:21:06 +1000 Subject: [PATCH] Issue #2346 Revert stack logging Signed-off-by: Greg Wilkins --- .../src/main/java/org/eclipse/jetty/server/HttpChannel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {