From bb89d0c2cfbb86cad6834bd80e29158dcdb93119 Mon Sep 17 00:00:00 2001 From: Viktor Kolomeyko Date: Tue, 19 Jun 2018 15:29:35 +0100 Subject: [PATCH] ENT-2054: Logging improvements (#3397) --- .../main/kotlin/net/corda/finance/flows/CashPaymentFlow.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/finance/src/main/kotlin/net/corda/finance/flows/CashPaymentFlow.kt b/finance/src/main/kotlin/net/corda/finance/flows/CashPaymentFlow.kt index dc71e54884..acf00f0c09 100644 --- a/finance/src/main/kotlin/net/corda/finance/flows/CashPaymentFlow.kt +++ b/finance/src/main/kotlin/net/corda/finance/flows/CashPaymentFlow.kt @@ -48,6 +48,7 @@ open class CashPaymentFlow( val anonymousRecipient = txIdentities[recipient] ?: recipient progressTracker.currentStep = GENERATING_TX val builder = TransactionBuilder(notary = null) + logger.info("Generating spend for: ${builder.lockId}") // TODO: Have some way of restricting this to states the caller controls val (spendTX, keysForSigning) = try { Cash.generateSpend(serviceHub, @@ -61,10 +62,13 @@ open class CashPaymentFlow( } progressTracker.currentStep = SIGNING_TX + logger.info("Signing transaction for: ${spendTX.lockId}") val tx = serviceHub.signInitialTransaction(spendTX, keysForSigning) progressTracker.currentStep = FINALISING_TX + logger.info("Finalising transaction for: ${tx.id}") val notarised = finaliseTx(tx, setOf(recipient), "Unable to notarise spend") + logger.info("Finalised transaction for: ${notarised.id}") return Result(notarised, anonymousRecipient) }