BUG-6937: correct format string 74/50574/2
authorRobert Varga <rovarga@cisco.com>
Tue, 17 Jan 2017 20:46:18 +0000 (21:46 +0100)
committerTom Pantelis <tpanteli@brocade.com>
Sat, 21 Jan 2017 17:54:49 +0000 (17:54 +0000)
This is a fix, the constructor takes String.format() string,
not a Logger.debug() one.

Change-Id: I966b02cd0c280b50ec1d0e77fb5a493fa2f5a4fe
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/RemoteRpcImplementation.java

index 11f145c..8d2cefb 100644 (file)
@@ -50,7 +50,7 @@ public class RemoteRpcImplementation implements DOMRpcImplementation {
             LOG.warn("Rpc {} was removed during execution or there is loop present. Failing received rpc.", rpc);
             return Futures.<DOMRpcResult, DOMRpcException>immediateFailedCheckedFuture(
                     new DOMRpcImplementationNotAvailableException(
-                            "Rpc implementation for {} was removed during processing.", rpc));
+                            "Rpc implementation for %s was removed during processing.", rpc));
         }
         final RemoteDOMRpcFuture frontEndFuture = RemoteDOMRpcFuture.create(rpc.getType().getLastComponent());
         findRouteAsync(rpc).onComplete(new OnComplete<FindRoutersReply>() {