mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +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].
|
||||
*/
|
||||
class ANSIProgressObserver(val smm: StateMachineManager) {
|
||||
|
||||
init {
|
||||
smm.changes.subscribe { change ->
|
||||
when (change.addOrRemove) {
|
||||
|
@ -191,7 +191,7 @@ private fun runSeller(node: Node, amount: Amount<Currency>, otherSide: Party) {
|
||||
}
|
||||
|
||||
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 {
|
||||
node.stop()
|
||||
}
|
||||
@ -250,7 +250,7 @@ private class TraderDemoProtocolBuyer(val otherSide: Party,
|
||||
// TODO: This should be moved into the protocol itself.
|
||||
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)}")
|
||||
|
||||
logIssuanceAttachment(tradeTX)
|
||||
@ -271,7 +271,7 @@ private class TraderDemoProtocolBuyer(val otherSide: Party,
|
||||
|
||||
cpIssuance.attachments.first().let {
|
||||
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:
|
||||
$p
|
||||
|
Loading…
x
Reference in New Issue
Block a user