zebrad: improve sync diagnostics
This commit is contained in:
parent
e0b2af7123
commit
ec411574ee
|
|
@ -191,7 +191,7 @@ where
|
||||||
|
|
||||||
tracing::info!("starting sync, obtaining new tips");
|
tracing::info!("starting sync, obtaining new tips");
|
||||||
if let Err(e) = self.obtain_tips().await {
|
if let Err(e) = self.obtain_tips().await {
|
||||||
tracing::warn!(?e);
|
tracing::warn!(?e, "error obtaining tips");
|
||||||
continue 'sync;
|
continue 'sync;
|
||||||
}
|
}
|
||||||
self.update_metrics();
|
self.update_metrics();
|
||||||
|
|
@ -204,7 +204,7 @@ where
|
||||||
tracing::trace!(?hash, "verified and committed block to state");
|
tracing::trace!(?hash, "verified and committed block to state");
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
tracing::warn!(?e);
|
tracing::warn!(?e, "error downloading and verifying block");
|
||||||
continue 'sync;
|
continue 'sync;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -236,7 +236,7 @@ where
|
||||||
tracing::trace!(?hash, "verified and committed block to state");
|
tracing::trace!(?hash, "verified and committed block to state");
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
tracing::warn!(?e);
|
tracing::warn!(?e, "error downloading and verifying block");
|
||||||
continue 'sync;
|
continue 'sync;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -252,7 +252,7 @@ where
|
||||||
);
|
);
|
||||||
|
|
||||||
if let Err(e) = self.extend_tips().await {
|
if let Err(e) = self.extend_tips().await {
|
||||||
tracing::warn!(?e);
|
tracing::warn!(?e, "error extending tips");
|
||||||
continue 'sync;
|
continue 'sync;
|
||||||
}
|
}
|
||||||
self.update_metrics();
|
self.update_metrics();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue