Merged in mike-small-tweaks (pull request )

A few small tweaks
This commit is contained in:
Mike Hearn 2016-09-08 12:40:14 +02:00
commit d8d639f192
3 changed files with 4 additions and 5 deletions
core/src/main/kotlin/com/r3corda/core/utilities
node/src/main/kotlin/com/r3corda/node
src/main/kotlin/com/r3corda/demos

View File

@ -13,9 +13,8 @@ import kotlin.reflect.KClass
// logging at that level is enabled.
inline fun <reified T : Any> 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 {

View File

@ -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()

View File

@ -199,7 +199,7 @@ private fun runBuyer(node: Node, amount: Amount<Currency>) {
// 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)