Repository: camel Updated Branches: refs/heads/master 89339ede1 -> 22d5241b5
Fixing misprints and change trace levels for logs Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/22d5241b Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/22d5241b Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/22d5241b Branch: refs/heads/master Commit: 22d5241b5f75631e9cfda82a6912a2555eecb165 Parents: 89339ed Author: Dmitry Volodin <[email protected]> Authored: Fri Jun 9 17:58:12 2017 +0300 Committer: Claus Ibsen <[email protected]> Committed: Fri Jun 9 19:07:16 2017 +0200 ---------------------------------------------------------------------- .../java/org/apache/camel/component/grpc/GrpcConsumer.java | 6 +++--- .../java/org/apache/camel/component/grpc/GrpcProducer.java | 6 +++--- .../main/java/org/apache/camel/component/grpc/GrpcUtils.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/22d5241b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java ---------------------------------------------------------------------- diff --git a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java index a964c06..7b69c96 100644 --- a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java +++ b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcConsumer.java @@ -71,7 +71,7 @@ public class GrpcConsumer extends DefaultConsumer { @Override protected void doStop() throws Exception { if (server != null) { - LOG.trace("Terminating gRPC server"); + LOG.debug("Terminating gRPC server"); server.shutdown().shutdownNow(); server = null; } @@ -93,10 +93,10 @@ public class GrpcConsumer extends DefaultConsumer { } if (!ObjectHelper.isEmpty(configuration.getHost()) && !ObjectHelper.isEmpty(configuration.getPort())) { - LOG.info("Building gRPC server on " + configuration.getHost() + ":" + configuration.getPort()); + LOG.debug("Building gRPC server on " + configuration.getHost() + ":" + configuration.getPort()); serverBuilder = NettyServerBuilder.forAddress(new InetSocketAddress(configuration.getHost(), configuration.getPort())); } else if (ObjectHelper.isEmpty(configuration.getHost()) && !ObjectHelper.isEmpty(configuration.getPort())) { - LOG.info("Building gRPC server on <any address>" + ":" + configuration.getPort()); + LOG.debug("Building gRPC server on <any address>" + ":" + configuration.getPort()); serverBuilder = NettyServerBuilder.forPort(configuration.getPort()); } else { throw new IllegalArgumentException("No server start properties (host, port) specified"); http://git-wip-us.apache.org/repos/asf/camel/blob/22d5241b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java ---------------------------------------------------------------------- diff --git a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java index fcc2ed7..2a2030a 100644 --- a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java +++ b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java @@ -72,10 +72,10 @@ public class GrpcProducer extends DefaultProducer implements AsyncProcessor { if (channel == null) { initializeChannel(); if (endpoint.isSynchronous()) { - LOG.info("Getting synchronous method stub from channel"); + LOG.debug("Getting synchronous method stub from channel"); grpcStub = GrpcUtils.constructGrpcBlockingStub(configuration.getServicePackage(), configuration.getServiceName(), channel, endpoint.getCamelContext()); } else { - LOG.info("Getting asynchronous method stub from channel"); + LOG.debug("Getting asynchronous method stub from channel"); grpcStub = GrpcUtils.constructGrpcAsyncStub(configuration.getServicePackage(), configuration.getServiceName(), channel, endpoint.getCamelContext()); } } @@ -84,7 +84,7 @@ public class GrpcProducer extends DefaultProducer implements AsyncProcessor { @Override protected void doStop() throws Exception { if (channel != null) { - LOG.trace("Terminating channel to the remote gRPC server"); + LOG.debug("Terminating channel to the remote gRPC server"); channel.shutdown().shutdownNow(); channel = null; grpcStub = null; http://git-wip-us.apache.org/repos/asf/camel/blob/22d5241b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcUtils.java ---------------------------------------------------------------------- diff --git a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcUtils.java b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcUtils.java index 39861cd..00cf25b 100644 --- a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcUtils.java +++ b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcUtils.java @@ -28,8 +28,8 @@ import org.apache.camel.util.ObjectHelper; import org.apache.camel.util.ReflectionHelper; /** - * GrpcUtils helpers are working with dynamic methods via Spring reflection - * utilities + * GrpcUtils helpers are working with dynamic methods via Camel and + * Java reflection utilities */ public final class GrpcUtils { @@ -61,7 +61,7 @@ public final class GrpcUtils { Class grpcServiceClass = context.getClassResolver().resolveMandatoryClass(serviceClassName); Method grpcBlockingMethod = ReflectionHelper.findMethod(grpcServiceClass, stubMethod, paramChannel); if (grpcBlockingMethod == null) { - throw new IllegalArgumentException("gRPC service method not found: " + serviceClassName + "." + GrpcConstants.GRPC_SERVICE_SYNC_STUB_METHOD); + throw new IllegalArgumentException("gRPC service method not found: " + serviceClassName + "." + stubMethod); } grpcBlockingStub = ObjectHelper.invokeMethod(grpcBlockingMethod, grpcServiceClass, channel);
