Skip to content

Commit

Permalink
Log the sync hash span at warn level
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Sep 3, 2020
1 parent f3bb5c2 commit 337d9f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zebrad/src/commands/start/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 337d9f8

Please sign in to comment.