From b2fcc9f1b0a5a775417845f6032b758cfa34162c Mon Sep 17 00:00:00 2001 From: Yoel Garcia Diaz Date: Thu, 7 Mar 2019 08:03:39 +0000 Subject: [PATCH] log both listening and binding addresses if they are different --- .../akka/remote/artery/ArteryTransport.scala | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/akka-remote/src/main/scala/akka/remote/artery/ArteryTransport.scala b/akka-remote/src/main/scala/akka/remote/artery/ArteryTransport.scala index 6a368599f5..3374b63e62 100644 --- a/akka-remote/src/main/scala/akka/remote/artery/ArteryTransport.scala +++ b/akka-remote/src/main/scala/akka/remote/artery/ArteryTransport.scala @@ -458,10 +458,19 @@ private[remote] abstract class ArteryTransport(_system: ExtendedActorSystem, _pr topLevelFlightRecorder.loFreq(Transport_StartupFinished, NoMetaData) startRemoveQuarantinedAssociationTask() - - log.info( - "Remoting started with transport [Artery {}]; listening on address [{}] with UID [{}]", - settings.Transport, bindAddress.address, bindAddress.uid) + + if (localAddress.address == bindAddress.address) + log.info( + "Remoting started with transport [Artery {}]; listening on address [{}] with UID [{}]", + settings.Transport, bindAddress.address, bindAddress.uid) + else { + log.info( + "Remoting started with transport [Artery {}];", settings.Transport) + log.info( + "Remoting is listening on address [{}] with UID [{}] and bind to [{}] with UID [{}]", + localAddress.address, localAddress.uid, bindAddress.address, bindAddress.uid) + } + } protected def startTransport(): Unit