CORDA-1369 set co.paralleluniverse.fibers.verifyInstrumentation=true in devMode (#3137)

This commit is contained in:
Tudor Malene 2018-05-14 17:26:08 +01:00 committed by GitHub
parent 4f9bbc8820
commit 759ed7c3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,8 @@ release, see :doc:`upgrade-notes`.
Unreleased
==========
* Set co.paralleluniverse.fibers.verifyInstrumentation=true in devMode.
* Node will now gracefully fail to start if one of the required ports is already in use.
* Node will now gracefully fail to start if ``devMode`` is true and ``compatibilityZoneURL`` is specified.

View File

@ -203,6 +203,7 @@ abstract class AbstractNode(val configuration: NodeConfiguration,
open fun start(): StartedNode<AbstractNode> {
check(started == null) { "Node has already been started" }
if (configuration.devMode) {
System.setProperty("co.paralleluniverse.fibers.verifyInstrumentation", "true")
Emoji.renderIfSupported { Node.printWarning("This node is running in developer mode! ${Emoji.developer} This is not safe for production deployment.") }
}
log.info("Node starting up ...")