mirror of
https://github.com/corda/corda.git
synced 2024-12-25 23:51:10 +00:00
commit
d8d639f192
@ -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 {
|
||||||
|
@ -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()
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user