From 9b6d42317b03e8293a91e6a0ddf9661b3d47b2d7 Mon Sep 17 00:00:00 2001 From: Simone Bordet Date: Tue, 10 May 2016 14:48:27 +0200 Subject: [PATCH] Improved logging. --- .../src/main/java/org/eclipse/jetty/server/HttpInput.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java index 4bb8f90db9a..293887cb77a 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java @@ -147,9 +147,9 @@ public class HttpInput extends ServletInputStream implements Runnable Content item = nextContent(); if (item!=null) { - if (LOG.isDebugEnabled()) - LOG.debug("{} read {} from {}",this,len,item); int l = get(item, b, off, len); + if (LOG.isDebugEnabled()) + LOG.debug("{} read {} from {}",this,l,item); consumeNonContent(); @@ -357,7 +357,7 @@ public class HttpInput extends ServletInputStream implements Runnable } if (LOG.isDebugEnabled()) - LOG.debug("{} blocking for content timeout={} ...", this,timeout); + LOG.debug("{} blocking for content timeout={}", this,timeout); if (timeout>0) _inputQ.wait(timeout); else @@ -845,5 +845,4 @@ public class HttpInput extends ServletInputStream implements Runnable return "AEOF"; } }; - }