From 7e3e3ee954e0a2bf55757c0029ad98564b9dea25 Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Tue, 20 Aug 2024 13:16:24 -0600 Subject: [PATCH] fix logging --- .../explorer/service/async/AsyncCachingV2.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncCachingV2.kt b/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncCachingV2.kt index 25c92745..475b857f 100644 --- a/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncCachingV2.kt +++ b/service/src/main/kotlin/io/provenance/explorer/service/async/AsyncCachingV2.kt @@ -161,7 +161,7 @@ class AsyncCachingV2( if (blockRes == null) return null logger.info("saving block ${blockRes.block.height()}") val blockTimestamp = blockRes.block.header.time.toDateTime() - if (rerunTxs.second) { + if (rerunTxs.first) { logger.info("attempting to build insert for block cache for block ${blockRes.block.height()}") } val block = @@ -171,19 +171,19 @@ class AsyncCachingV2( blockTimestamp, blockRes ) - if (rerunTxs.second) { + if (rerunTxs.first) { logger.info("attempting to build proposer insert for block ${blockRes.block.height()}") } val proposerRec = validatorService.buildProposerInsert(blockRes, blockTimestamp, blockRes.block.height()) - if (rerunTxs.second) { + if (rerunTxs.first) { logger.info("attempting to query validator at height for block ${blockRes.block.height()}") } val valsAtHeight = validatorService.buildValidatorsAtHeight(blockRes.block.height()) - if (rerunTxs.second) { + if (rerunTxs.first) { logger.info("attempting to calculate missing blocks for block ${blockRes.block.height()}") } validatorService.saveMissedBlocks(blockRes) - if (rerunTxs.second) { + if (rerunTxs.first) { logger.info("attempting to save txs ${blockRes.block.data.txsCount} for block ${blockRes.block.height()}") } val txs =