Don't WARN when the user explicitly enabled unsafe features (#27289)
This commit is contained in:
parent
14c02302bc
commit
47c65d266a
1 changed files with 5 additions and 6 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue