Merged in mike-small-tweaks (pull request #337)

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

View File

@ -13,9 +13,8 @@ import kotlin.reflect.KClass
// logging at that level is enabled. // logging at that level is enabled.
inline fun <reified T : Any> loggerFor(): org.slf4j.Logger = LoggerFactory.getLogger(T::class.java) inline fun <reified T : Any> loggerFor(): org.slf4j.Logger = LoggerFactory.getLogger(T::class.java)
inline fun org.slf4j.Logger.trace(msg: () -> String) { inline fun org.slf4j.Logger.trace(msg: () -> String) { if (isTraceEnabled) trace(msg()) }
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 */ /** A configuration helper that allows modifying the log level for specific loggers */
object LogHelper { object LogHelper {

View File

@ -9,7 +9,7 @@ import java.net.InetAddress
import java.nio.file.Path import java.nio.file.Path
import java.nio.file.Paths import java.nio.file.Paths
val log = LoggerFactory.getLogger("Main") private val log = LoggerFactory.getLogger("Main")
object ParamsSpec { object ParamsSpec {
val parser = OptionParser() val parser = OptionParser()

View File

@ -199,7 +199,7 @@ private fun runBuyer(node: Node, amount: Amount<Currency>) {
// Self issue some cash. // Self issue some cash.
// //
// TODO: At some point this demo should be extended to have a central bank node. // 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. outputNotary = node.info.identity, // In this demo, the buyer and notary are the same.
ownedBy = node.services.keyManagementService.freshKey().public) ownedBy = node.services.keyManagementService.freshKey().public)