electrum: use debug log level for sync messages

These sync messages appear typically every 30 seconds and are
only useful for debugging purposes.

The full scan messages can remain at info level for now as
they are only expected to occur once for a new wallet and then
only in case a rescan is performed.
This commit is contained in:
Michael Mallan 2024-10-23 11:44:24 +01:00
parent 1c8df3e1b1
commit f9b7a25b40
No known key found for this signature in database
GPG Key ID: 5177CDCEDB0EABEB

View File

@ -138,7 +138,7 @@ impl Electrum {
const STOP_GAP: usize = 200;
let (chain_update, mut graph_update, keychain_update) = if !self.is_rescanning() {
log::info!("Performing sync.");
log::debug!("Performing sync.");
let mut request = SyncRequest::from_chain_tip(local_chain_tip.clone())
.cache_graph_txs(self.bdk_wallet.graph());
@ -157,7 +157,7 @@ impl Electrum {
.client
.sync_with_confirmation_time_height_anchor(request, FETCH_PREV_TXOUTS)
.map_err(ElectrumError::Client)?;
log::info!("Sync complete.");
log::debug!("Sync complete.");
(sync_result.chain_update, sync_result.graph_update, None)
} else {
log::info!("Performing full scan.");