mirror of
https://github.com/corda/corda.git
synced 2025-06-23 01:19:00 +00:00
CORDA-3060: Notary logging improvements
Add more detailed logging to the notary service flow.
This commit is contained in:
@ -61,7 +61,7 @@ class NotaryFlow {
|
||||
logger.info("Sending transaction to notary: ${notaryParty.name}.")
|
||||
progressTracker.currentStep = REQUESTING
|
||||
val response = notarise(notaryParty)
|
||||
logger.info("Notary responded.")
|
||||
logger.info("Notary responded (${notaryParty.name}).")
|
||||
progressTracker.currentStep = VALIDATING
|
||||
return validateResponse(response, notaryParty)
|
||||
}
|
||||
|
@ -81,6 +81,7 @@ abstract class NotaryServiceFlow(val otherSideSession: FlowSession, val service:
|
||||
try {
|
||||
val transaction = extractParts(requestPayload)
|
||||
transactionId = transaction.id
|
||||
logger.info("Received a notarisation request for Tx [$transactionId] from [${otherSideSession.counterparty.name}]")
|
||||
checkNotary(transaction.notary)
|
||||
checkParameterHash(transaction.networkParametersHash)
|
||||
checkInputs(transaction.inputs + transaction.references)
|
||||
@ -125,6 +126,7 @@ abstract class NotaryServiceFlow(val otherSideSession: FlowSession, val service:
|
||||
@Suspendable
|
||||
private fun signTransactionAndSendResponse(txId: SecureHash) {
|
||||
val signature = service.signTransaction(txId)
|
||||
logger.info("Transaction [$txId] successfully notarised, sending signature back to [${otherSideSession.counterparty.name}]")
|
||||
otherSideSession.send(NotarisationResponse(listOf(signature)))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user