From 337d9f82b6a487bb8c668575c7395c8c022d5c3b Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 2 Sep 2020 11:19:32 +1000 Subject: [PATCH] Log the sync hash span at warn level --- zebrad/src/commands/start/sync.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zebrad/src/commands/start/sync.rs b/zebrad/src/commands/start/sync.rs index bb3ad87c7a0..96bffe93d61 100644 --- a/zebrad/src/commands/start/sync.rs +++ b/zebrad/src/commands/start/sync.rs @@ -447,7 +447,8 @@ where tracing::debug!(?hash, "requested block"); - let span = tracing::info_span!("block_fetch_verify", ?hash); + // This span is used to help diagnose sync warnings + let span = tracing::warn_span!("block_fetch_verify", ?hash); let mut verifier = self.verifier.clone(); let task = tokio::spawn( async move {