Better logging on artery start when bind address used

This commit is contained in:
Johan Andrén 2019-03-07 14:58:09 +01:00 committed by GitHub
commit 59cae4d07b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -1 +0,0 @@
1.8

View file

@ -459,9 +459,16 @@ private[remote] abstract class ArteryTransport(_system: ExtendedActorSystem, _pr
startRemoveQuarantinedAssociationTask()
log.info(
"Remoting started with transport [Artery {}]; listening on address [{}] with UID [{}]",
settings.Transport, localAddress.address, localAddress.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(
s"Remoting started with transport [Artery ${settings.Transport}]; listening on address [{}] and bound to [{}] with UID [{}]",
localAddress.address, bindAddress.address, localAddress.uid)
}
}
protected def startTransport(): Unit