Skip to content

Commit

Permalink
chore: reduce logs (#6771)
Browse files Browse the repository at this point in the history
Description
---
Reduce spaming of log files by scanning wallet
  • Loading branch information
SWvheerden authored Jan 30, 2025
1 parent 2b9210d commit 399cba4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions base_layer/core/src/base_node/rpc/sync_utxos_by_block_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ where B: BlockchainBackend + 'static
start_header: BlockHeader,
end_header: BlockHeader,
) -> Result<(), RpcStatus> {
debug!(
trace!(
target: LOG_TARGET,
"Starting stream task with start_header: {} and end_header: {}",
start_header.hash().to_hex(),
Expand All @@ -110,7 +110,7 @@ where B: BlockchainBackend + 'static
let timer = Instant::now();
let current_header_hash = current_header.hash();

debug!(
trace!(
target: LOG_TARGET,
"current header = {} ({})",
current_header.height,
Expand All @@ -133,7 +133,7 @@ where B: BlockchainBackend + 'static
.collect::<Result<Vec<proto::types::TransactionOutput>, String>>()
.map_err(|err| RpcStatus::general(&err))?;

debug!(
trace!(
target: LOG_TARGET,
"Streaming {} UTXO(s) for block #{} (Hash: {})",
outputs.len(),
Expand Down Expand Up @@ -167,7 +167,7 @@ where B: BlockchainBackend + 'static
}
}

debug!(
trace!(
target: LOG_TARGET,
"Streamed utxos in {:.2?} (including stream backpressure)",
timer.elapsed()
Expand All @@ -190,7 +190,7 @@ where B: BlockchainBackend + 'static
})?;
}

debug!(
trace!(
target: LOG_TARGET,
"UTXO sync by block completed to UTXO {} (Header hash = {})",
current_header.output_smt_size,
Expand Down

0 comments on commit 399cba4

Please sign in to comment.