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:
Mike Hearn 2016-10-10 12:00:36 +02:00
parent cf19ff37cd
commit 11bcaf5fb2
2 changed files with 3 additions and 4 deletions

View File

@ -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) {

View File

@ -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