]> WPIA git - gigi.git/blobdiff - lib/jetty/org/eclipse/jetty/server/QueuedHttpInput.java
updating jetty to jetty-9.2.16.v2016040
[gigi.git] / lib / jetty / org / eclipse / jetty / server / QueuedHttpInput.java
index 881fbfa08420e00e6f3dc252479e9a1902305e70..e0888979bea2db157fe28342f5c8f71366b036ac 100644 (file)
@@ -1,6 +1,6 @@
 //
 //  ========================================================================
-//  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+//  Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
 //  ------------------------------------------------------------------------
 //  All rights reserved. This program and the accompanying materials
 //  are made available under the terms of the Eclipse Public License v1.0
@@ -55,7 +55,8 @@ public abstract class QueuedHttpInput<T> extends HttpInput<T>
         {
             boolean wasEmpty = _inputQ.isEmpty();
             _inputQ.add(item);
-            LOG.debug("{} queued {}", this, item);
+            if (LOG.isDebugEnabled())
+                LOG.debug("{} queued {}", this, item);
             if (wasEmpty)
             {
                 if (!onAsyncRead())
@@ -90,7 +91,8 @@ public abstract class QueuedHttpInput<T> extends HttpInput<T>
             {
                 _inputQ.pollUnsafe();
                 onContentConsumed(item);
-                LOG.debug("{} consumed {}", this, item);
+                if (LOG.isDebugEnabled())
+                    LOG.debug("{} consumed {}", this, item);
                 item = _inputQ.peekUnsafe();
             }
             return item;
@@ -105,7 +107,8 @@ public abstract class QueuedHttpInput<T> extends HttpInput<T>
             {
                 try
                 {
-                    LOG.debug("{} waiting for content", this);
+                    if (LOG.isDebugEnabled())
+                        LOG.debug("{} waiting for content", this);
                     lock().wait();
                 }
                 catch (InterruptedException e)