mirror of
https://github.com/corda/corda.git
synced 2025-05-29 13:44:25 +00:00
Minor: go back to using logging for the trader demo specific output (i.e. admit defeat with the ANSI renderer, which is not long for this world anyway)
This commit is contained in:
parent
cf19ff37cd
commit
11bcaf5fb2
@ -11,7 +11,6 @@ import java.util.*
|
|||||||
* they are added to the [StateMachineManager].
|
* they are added to the [StateMachineManager].
|
||||||
*/
|
*/
|
||||||
class ANSIProgressObserver(val smm: StateMachineManager) {
|
class ANSIProgressObserver(val smm: StateMachineManager) {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
smm.changes.subscribe { change ->
|
smm.changes.subscribe { change ->
|
||||||
when (change.addOrRemove) {
|
when (change.addOrRemove) {
|
||||||
|
@ -191,7 +191,7 @@ private fun runSeller(node: Node, amount: Amount<Currency>, otherSide: Party) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tradeTX.success {
|
tradeTX.success {
|
||||||
println("Sale completed - we have a happy customer!\n\nFinal transaction is:\n\n${Emoji.renderIfSupported(it.tx)}")
|
log.info("Sale completed - we have a happy customer!\n\nFinal transaction is:\n\n${Emoji.renderIfSupported(it.tx)}")
|
||||||
thread {
|
thread {
|
||||||
node.stop()
|
node.stop()
|
||||||
}
|
}
|
||||||
@ -250,7 +250,7 @@ private class TraderDemoProtocolBuyer(val otherSide: Party,
|
|||||||
// TODO: This should be moved into the protocol itself.
|
// TODO: This should be moved into the protocol itself.
|
||||||
serviceHub.recordTransactions(listOf(tradeTX))
|
serviceHub.recordTransactions(listOf(tradeTX))
|
||||||
|
|
||||||
println("Purchase complete - we are a happy customer! Final transaction is: " +
|
log.info("Purchase complete - we are a happy customer! Final transaction is: " +
|
||||||
"\n\n${Emoji.renderIfSupported(tradeTX.tx)}")
|
"\n\n${Emoji.renderIfSupported(tradeTX.tx)}")
|
||||||
|
|
||||||
logIssuanceAttachment(tradeTX)
|
logIssuanceAttachment(tradeTX)
|
||||||
@ -271,7 +271,7 @@ private class TraderDemoProtocolBuyer(val otherSide: Party,
|
|||||||
|
|
||||||
cpIssuance.attachments.first().let {
|
cpIssuance.attachments.first().let {
|
||||||
val p = attachmentsPath.toAbsolutePath().resolve("$it.jar")
|
val p = attachmentsPath.toAbsolutePath().resolve("$it.jar")
|
||||||
println("""
|
log.info("""
|
||||||
|
|
||||||
The issuance of the commercial paper came with an attachment. You can find it expanded in this directory:
|
The issuance of the commercial paper came with an attachment. You can find it expanded in this directory:
|
||||||
$p
|
$p
|
||||||
|
Loading…
x
Reference in New Issue
Block a user