=clu #3600 Disable Cluster assertInvariants checks by default
* asserts can be enabled by system property 'akka.cluster.assert=on'
This commit is contained in:
parent
9456a081b7
commit
cc66daad48
4 changed files with 11 additions and 13 deletions
|
|
@ -39,6 +39,15 @@ object Cluster extends ExtensionId[Cluster] with ExtensionIdProvider {
|
|||
override def lookup = Cluster
|
||||
|
||||
override def createExtension(system: ExtendedActorSystem): Cluster = new Cluster(system)
|
||||
|
||||
/**
|
||||
* INTERNAL API
|
||||
*/
|
||||
private[cluster] final val isAssertInvariantsEnabled: Boolean =
|
||||
System.getProperty("akka.cluster.assert", "off").toLowerCase match {
|
||||
case "on" | "true" ⇒ true
|
||||
case _ ⇒ false
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue