diff --git a/core/src/main/kotlin/com/r3corda/core/utilities/Logging.kt b/core/src/main/kotlin/com/r3corda/core/utilities/Logging.kt index ebb5f743ae..2acbb4729e 100644 --- a/core/src/main/kotlin/com/r3corda/core/utilities/Logging.kt +++ b/core/src/main/kotlin/com/r3corda/core/utilities/Logging.kt @@ -13,9 +13,8 @@ import kotlin.reflect.KClass // logging at that level is enabled. inline fun loggerFor(): org.slf4j.Logger = LoggerFactory.getLogger(T::class.java) -inline fun org.slf4j.Logger.trace(msg: () -> String) { - if (isTraceEnabled) trace(msg()) -} +inline fun org.slf4j.Logger.trace(msg: () -> String) { if (isTraceEnabled) trace(msg()) } +inline fun org.slf4j.Logger.debug(msg: () -> String) { if (isDebugEnabled) debug(msg()) } /** A configuration helper that allows modifying the log level for specific loggers */ object LogHelper { diff --git a/node/src/main/kotlin/com/r3corda/node/Main.kt b/node/src/main/kotlin/com/r3corda/node/Main.kt index 52d1392254..72ca45b14b 100644 --- a/node/src/main/kotlin/com/r3corda/node/Main.kt +++ b/node/src/main/kotlin/com/r3corda/node/Main.kt @@ -9,7 +9,7 @@ import java.net.InetAddress import java.nio.file.Path import java.nio.file.Paths -val log = LoggerFactory.getLogger("Main") +private val log = LoggerFactory.getLogger("Main") object ParamsSpec { val parser = OptionParser() diff --git a/src/main/kotlin/com/r3corda/demos/TraderDemo.kt b/src/main/kotlin/com/r3corda/demos/TraderDemo.kt index 24cbc2ecf6..d3ca4d1a8e 100644 --- a/src/main/kotlin/com/r3corda/demos/TraderDemo.kt +++ b/src/main/kotlin/com/r3corda/demos/TraderDemo.kt @@ -199,7 +199,7 @@ private fun runBuyer(node: Node, amount: Amount) { // Self issue some cash. // // TODO: At some point this demo should be extended to have a central bank node. - node.services.fillWithSomeTestCash(3000.DOLLARS, + node.services.fillWithSomeTestCash(300000.DOLLARS, outputNotary = node.info.identity, // In this demo, the buyer and notary are the same. ownedBy = node.services.keyManagementService.freshKey().public)