From 39928563f61948ede7ceb6ee51579fe34ef1e560 Mon Sep 17 00:00:00 2001 From: Jose Coll Date: Thu, 19 Oct 2023 09:29:05 +0100 Subject: [PATCH] Set verboseLogging to false by default. Override toString() for ReceiverDistributionRecord --- .../src/main/kotlin/net/corda/core/flows/LedgerRecoverFlow.kt | 2 +- core/src/main/kotlin/net/corda/core/flows/RecoveryTypes.kt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/kotlin/net/corda/core/flows/LedgerRecoverFlow.kt b/core/src/main/kotlin/net/corda/core/flows/LedgerRecoverFlow.kt index 32c0ff3866..f416fe1455 100644 --- a/core/src/main/kotlin/net/corda/core/flows/LedgerRecoverFlow.kt +++ b/core/src/main/kotlin/net/corda/core/flows/LedgerRecoverFlow.kt @@ -36,7 +36,7 @@ data class LedgerRecoveryParameters( val useAllNetworkNodes: Boolean = false, val dryRun: Boolean = false, val useTimeWindowNarrowing: Boolean = true, - val verboseLogging: Boolean = true, + val verboseLogging: Boolean = false, val recoveryBatchSize: Int = 1000 ) diff --git a/core/src/main/kotlin/net/corda/core/flows/RecoveryTypes.kt b/core/src/main/kotlin/net/corda/core/flows/RecoveryTypes.kt index 2fbdb9c1fe..ae5d3ee4e6 100644 --- a/core/src/main/kotlin/net/corda/core/flows/RecoveryTypes.kt +++ b/core/src/main/kotlin/net/corda/core/flows/RecoveryTypes.kt @@ -94,6 +94,10 @@ data class ReceiverDistributionRecord( ) : DistributionRecord() { override val id: SecureHash get() = this.txId + + override fun toString(): String { + return "txId: $txId, peerPartyId: $peerPartyId, timestamp: $timestamp, timestampDiscriminator: $timestampDiscriminator, receiverStatesToRecord: $receiverStatesToRecord" + } } @CordaSerializable