Output Request toString in RequestTimeoutException 84/79284/1
authorTom Pantelis <tompantelis@gmail.com>
Mon, 7 Jan 2019 16:43:51 +0000 (11:43 -0500)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 7 Jan 2019 16:43:51 +0000 (11:43 -0500)
It will help for debugging to see the transaction ID -
might as well output the entire Request which includes
that.

Change-Id: I63eb20dc6b883c95d4b2059a231a5848d5a7b67c
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/AbstractClientConnection.java

index 9fd75cc439b68499e13c463fbd419ae6b2d4704b..7375fe06d95f3986860755b5066eb47f4e6bff8d 100644 (file)
@@ -422,7 +422,7 @@ public abstract class AbstractClientConnection<T extends BackendInfo> {
         context.executeInActor(current -> {
             final double time = beenOpen * 1.0 / 1_000_000_000;
             entry.complete(entry.getRequest().toRequestFailure(
-                new RequestTimeoutException("Timed out after " + time + " seconds")));
+                new RequestTimeoutException(entry.getRequest() + " timed out after " + time + " seconds")));
             return current;
         });
     }