Reduce various logs in org.bitcoins.wallet to DEBUG (#5434)

This commit is contained in:
Chris Stewart 2024-02-27 15:55:14 -06:00 committed by GitHub
parent ab0b0e2209
commit 42e5e87350
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -395,7 +395,7 @@ private[wallet] trait RescanHandling extends WalletLogger {
private def downloadAndProcessBlocks(
blocks: Vector[DoubleSha256Digest]): Future[Unit] = {
logger.info(s"Requesting ${blocks.size} block(s)")
logger.debug(s"Requesting ${blocks.size} block(s)")
blocks.foldLeft(Future.unit) { (prevF, blockHash) =>
val completedF = subscribeForBlockProcessingCompletionSignal(blockHash)
for {
@ -502,7 +502,7 @@ private[wallet] trait RescanHandling extends WalletLogger {
Flow[Vector[Int]].mapAsync(1) { case range: Vector[Int] =>
val startHeight = range.head
val endHeight = range.last
logger.info(
logger.debug(
s"Searching filters from start=$startHeight to end=$endHeight")
chainQueryApi.getFiltersBetweenHeights(startHeight = startHeight,
endHeight = endHeight)
@ -534,7 +534,7 @@ private[wallet] trait RescanHandling extends WalletLogger {
filtered <- findMatches(filtersResponse, scripts, parallelismLevel)(ec)
_ <- downloadAndProcessBlocks(filtered.map(_.blockHash.flip))
} yield {
logger.info(
logger.debug(
s"Found ${filtered.length} matches from start=$startHeightOpt to end=$endHeightOpt")
filtered
}

View File

@ -65,7 +65,7 @@ private[bitcoins] trait TransactionProcessing extends WalletLogger {
val isEmptyF = isEmpty()
val heightF = chainQueryApi.getBlockHeight(block.blockHeader.hashBE)
heightF.foreach { heightOpt =>
logger.info(
logger.debug(
s"Processing block=${block.blockHeader.hash.flip.hex} heightOpt=$heightOpt")
}