From 7ee8accfb15dd44f71605277729c68b8e8c92ff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Bon=C3=A9r?= Date: Tue, 23 Nov 2010 08:36:47 +0100 Subject: [PATCH] Fixed problem with message toString is not lazily evaluated in RemoteClient --- akka-remote/src/main/scala/akka/remote/RemoteClient.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/akka-remote/src/main/scala/akka/remote/RemoteClient.scala b/akka-remote/src/main/scala/akka/remote/RemoteClient.scala index 77052c8547..e501411f6f 100644 --- a/akka-remote/src/main/scala/akka/remote/RemoteClient.scala +++ b/akka-remote/src/main/scala/akka/remote/RemoteClient.scala @@ -417,8 +417,7 @@ class RemoteClientHandler( if (result.isInstanceOf[RemoteMessageProtocol]) { val reply = result.asInstanceOf[RemoteMessageProtocol] val replyUuid = uuidFrom(reply.getUuid.getHigh, reply.getUuid.getLow) -// log.debug("Remote client received RemoteMessageProtocol[\n%s]".format(request.toString)) - log.debug("Remote client received RemoteMessageProtocol[\n%s]", reply.toString) + log.debug("Remote client received RemoteMessageProtocol[\n%s]".format(reply.toString)) val future = futures.get(replyUuid).asInstanceOf[CompletableFuture[Any]] if (reply.hasMessage) { if (future eq null) throw new IllegalActorStateException("Future mapped to UUID " + replyUuid + " does not exist")