Don't WARN when the user explicitly enabled unsafe features (#27289)

This commit is contained in:
Arnout Engelen 2019-07-05 19:25:35 +02:00 committed by Christopher Batey
parent 14c02302bc
commit 47c65d266a

View file

@ -331,12 +331,11 @@ private[akka] class RemoteActorRefProvider(
// Log on `init` similar to `warnIfDirectUse`.
private[akka] def warnIfUseUnsafeWithoutCluster(): Unit =
if (!settings.HasCluster) {
val msg =
if (remoteSettings.UseUnsafeRemoteFeaturesWithoutCluster)
"`akka.remote.use-unsafe-remote-features-without-cluster` has been enabled."
else
"Using Akka Cluster is recommended if you need remote watch and deploy."
log.warning(s"Cluster not in use - {}", msg)
if (remoteSettings.UseUnsafeRemoteFeaturesWithoutCluster)
log.info(
"Akka Cluster not in use - enabling unsafe features anyway because `akka.remote.use-unsafe-remote-features-without-cluster` has been enabled.")
else
log.warning("Akka Cluster not in use - Using Akka Cluster is recommended if you need remote watch and deploy.")
}
protected def warnOnUnsafe(message: String): Unit =