ClusterMessagingProtocolClient: less log for expected exception
Change-Id: Ifac94d2dc68144f126c9c6ab2cd4aedc712a10fe
diff --git a/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolClient.java b/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolClient.java
index 36bee56..4f5e372 100644
--- a/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolClient.java
+++ b/core/store/dist/src/main/java/org/onlab/onos/store/service/impl/ClusterMessagingProtocolClient.java
@@ -217,10 +217,12 @@
future.complete(verifyNotNull(SERIALIZER.decode(response)));
} catch (IOException | ExecutionException | TimeoutException e) {
- log.warn("RPCTask for {} failed.", request, e);
+ log.warn("RPCTask for {} failed: {}", request, e.getMessage());
+ log.debug("RPCTask for {} failed.", request, e);
future.completeExceptionally(e);
} catch (InterruptedException e) {
- log.warn("RPCTask for {} was interrupted.", request, e);
+ log.warn("RPCTask for {} was interrupted: {}", request, e.getMessage());
+ log.debug("RPCTask for {} was interrupted.", request, e);
future.completeExceptionally(e);
Thread.currentThread().interrupt();
} catch (Exception e) {