CAMEL-7642 Removed the System.out and polished the warning log
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3c7bfcc6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3c7bfcc6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3c7bfcc6 Branch: refs/heads/camel-2.13.x Commit: 3c7bfcc659cb11d21a81d171588d2e4aca019e05 Parents: c07c9ed Author: Willem Jiang <willem.ji...@gmail.com> Authored: Tue Jul 29 10:47:15 2014 +0800 Committer: Willem Jiang <willem.ji...@gmail.com> Committed: Tue Jul 29 10:48:43 2014 +0800 ---------------------------------------------------------------------- .../component/netty/http/handlers/HttpServerChannelHandler.java | 2 +- .../netty/http/handlers/HttpServerMultiplexChannelHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/3c7bfcc6/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java ---------------------------------------------------------------------- diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java index a6fac74..8894f6a 100644 --- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java +++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerChannelHandler.java @@ -268,7 +268,7 @@ public class HttpServerChannelHandler extends ServerChannelHandler { @Override public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent exceptionEvent) throws Exception { - System.out.println("Get the exception here" + exceptionEvent); + // only close if we are still allowed to run if (consumer.isRunAllowed()) { http://git-wip-us.apache.org/repos/asf/camel/blob/3c7bfcc6/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerMultiplexChannelHandler.java ---------------------------------------------------------------------- diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerMultiplexChannelHandler.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerMultiplexChannelHandler.java index 3c219f6..5075170 100644 --- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerMultiplexChannelHandler.java +++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/handlers/HttpServerMultiplexChannelHandler.java @@ -118,7 +118,7 @@ public class HttpServerMultiplexChannelHandler extends SimpleChannelUpstreamHand handler.exceptionCaught(ctx, e); } else { // we cannot throw the exception here - LOG.warn("HttpServerChannelHandler is not found as attachment for exception {}, send 404 back to the client.", e.getCause()); + LOG.warn("HttpServerChannelHandler is not found as attachment to handle exception, send 404 back to the client.", e.getCause()); // Now we just send 404 back to the client HttpResponse response = new DefaultHttpResponse(HTTP_1_1, NOT_FOUND); response.headers().set(Exchange.CONTENT_TYPE, "text/plain");