mirror of
https://github.com/corda/corda.git
synced 2024-12-25 15:41:10 +00:00
commit
d8d639f192
core/src/main/kotlin/com/r3corda/core/utilities
node/src/main/kotlin/com/r3corda/node
src/main/kotlin/com/r3corda/demos
@ -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 {
|
||||
|
@ -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()
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user