Issue #3317 avoid double log of exception
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
051edc94d7
commit
0809228549
|
@ -71,6 +71,7 @@ import org.eclipse.jetty.util.thread.Scheduler;
|
|||
public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
||||
{
|
||||
private static final Logger LOG = Log.getLogger(HttpChannel.class);
|
||||
|
||||
private final AtomicBoolean _committed = new AtomicBoolean();
|
||||
private final AtomicBoolean _responseCompleted = new AtomicBoolean();
|
||||
private final AtomicLong _requests = new AtomicLong();
|
||||
|
@ -586,9 +587,10 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
|||
else if (no_stack!=null)
|
||||
{
|
||||
// No stack trace unless there is debug turned on
|
||||
LOG.warn("{} {}",_request.getRequestURI(), no_stack.toString());
|
||||
if (LOG.isDebugEnabled())
|
||||
LOG.debug(_request.getRequestURI(), failure);
|
||||
else
|
||||
LOG.warn("{} {}",_request.getRequestURI(), no_stack.toString());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue