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
This commit is contained in:
teor 2022-03-26 12:28:38 +10:00 committed by GitHub
parent f687ab947f
commit 9d1702e93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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();