From 253d1c02b3f4769888f2aa30c7a5f14a491e6b64 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 16 Feb 2021 12:43:11 +1000 Subject: [PATCH] Make sync logging a bit less verbose And tweak some log content --- zebrad/src/components/sync.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index 965bc643..ae71ccb9 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -351,7 +351,7 @@ where }) .map_err(|e| eyre!(e))?; - tracing::info!("trying to obtain new chain tips"); + tracing::info!(?tip = block_locator.first().unwrap(), "trying to obtain new chain tips"); tracing::debug!(?block_locator, "got block locator"); let mut requests = FuturesUnordered::new(); @@ -466,8 +466,9 @@ where let tips = std::mem::take(&mut self.prospective_tips); let mut download_set = HashSet::new(); + tracing::info!(?tips = tips.len(), "trying to extend chain tips"); for tip in tips { - tracing::info!(?tip, "trying to extend chain tips"); + tracing::debug!(?tip, "asking peers to extend chain tip"); let mut responses = FuturesUnordered::new(); for _ in 0..FANOUT { responses.push(