#2005 - Putting the required fields into RemoteTransport and took the opportunity to clean up use of ActorSystemImpl

This commit is contained in:
Viktor Klang 2012-04-23 18:59:49 +02:00
parent 7cc4c03018
commit 5f2b23c0c8
5 changed files with 16 additions and 16 deletions

View file

@ -58,7 +58,7 @@ abstract class RemoteClient private[akka] (
* Converts the message to the wireprotocol and sends the message across the wire
*/
def send(message: Any, senderOption: Option[ActorRef], recipient: ActorRef): Unit = if (isRunning) {
if (netty.remoteSettings.LogSend) log.debug("Sending message {} from {} to {}", message, senderOption, recipient)
if (netty.provider.remoteSettings.LogSend) log.debug("Sending message {} from {} to {}", message, senderOption, recipient)
send((message, senderOption, recipient))
} else {
val exception = new RemoteClientException("RemoteModule client is not running, make sure you have invoked 'RemoteClient.connect()' before using it.", netty, remoteAddress)