summaryrefslogtreecommitdiffstats
path: root/infra/rpc/impl/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'infra/rpc/impl/src/main/java')
-rw-r--r--infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/RpcRegistryBuilder.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/RpcRegistryBuilder.java b/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/RpcRegistryBuilder.java
index 0b96be0a3..ca6441ee8 100644
--- a/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/RpcRegistryBuilder.java
+++ b/infra/rpc/impl/src/main/java/io/fd/honeycomb/rpc/RpcRegistryBuilder.java
@@ -25,6 +25,8 @@ import javax.annotation.Nullable;
import org.opendaylight.controller.md.sal.dom.api.DOMRpcImplementationNotAvailableException;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public final class RpcRegistryBuilder {
@@ -40,6 +42,7 @@ public final class RpcRegistryBuilder {
private static final class RpcRegistryImpl implements RpcRegistry {
+ private static final Logger LOG = LoggerFactory.getLogger(RpcRegistryImpl.class);
private final Map<SchemaPath, RpcService> services;
private RpcRegistryImpl(@Nonnull final Map<SchemaPath, RpcService> services) {
@@ -51,11 +54,13 @@ public final class RpcRegistryBuilder {
public CompletionStage invoke(@Nonnull final SchemaPath schemaPath, @Nullable final DataObject request) {
final RpcService rpcService = services.get(schemaPath);
if (rpcService == null) {
+ LOG.error("Missing Rpc service for schemaPath: {}", schemaPath);
final CompletableFuture<DataObject> result = new CompletableFuture<>();
result.completeExceptionally(
new DOMRpcImplementationNotAvailableException("Service not found: %s", schemaPath));
return result;
}
+ LOG.debug("Delegating rpcRequest: {} to rpcService: {}", request, rpcService);
return rpcService.invoke(request);
}