From 9d1702e93ee92f6f6adb0606f666b6f9847bee32 Mon Sep 17 00:00:00 2001 From: teor Date: Sat, 26 Mar 2022 12:28:38 +1000 Subject: [PATCH] Make sync error logs more user-friendly (#3944) - use info level, there is nothing the user needs to do, particularly for a single error - explain that the errors are temporary - hide backtraces, because they look like crashes --- zebrad/src/components/sync.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebrad/src/components/sync.rs b/zebrad/src/components/sync.rs index 756153b12..5a33bc17c 100644 --- a/zebrad/src/components/sync.rs +++ b/zebrad/src/components/sync.rs @@ -389,7 +389,7 @@ where "starting sync, obtaining new tips" ); if let Err(e) = self.obtain_tips().await { - warn!(?e, "error obtaining tips"); + info!("temporary error obtaining tips: {:#}", e); return Err(()); } self.update_metrics(); @@ -438,7 +438,7 @@ where ); if let Err(e) = self.extend_tips().await { - warn!(?e, "error extending tips"); + info!("temporary error extending tips: {:#}", e); return Err(()); } self.update_metrics();