From ec411574ee76637767db60434d48d094fb7ecfef Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 12 Nov 2020 14:38:57 -0800 Subject: [PATCH] zebrad: improve sync diagnostics --- zebrad/src/components/sync.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index 07b3a459..ecf687b2 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -191,7 +191,7 @@ where tracing::info!("starting sync, obtaining new tips"); if let Err(e) = self.obtain_tips().await { - tracing::warn!(?e); + tracing::warn!(?e, "error obtaining tips"); continue 'sync; } self.update_metrics(); @@ -204,7 +204,7 @@ where tracing::trace!(?hash, "verified and committed block to state"); } Err(e) => { - tracing::warn!(?e); + tracing::warn!(?e, "error downloading and verifying block"); continue 'sync; } } @@ -236,7 +236,7 @@ where tracing::trace!(?hash, "verified and committed block to state"); } Err(e) => { - tracing::warn!(?e); + tracing::warn!(?e, "error downloading and verifying block"); continue 'sync; } } @@ -252,7 +252,7 @@ where ); if let Err(e) = self.extend_tips().await { - tracing::warn!(?e); + tracing::warn!(?e, "error extending tips"); continue 'sync; } self.update_metrics();