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:
parent
f687ab947f
commit
9d1702e93e
|
@ -389,7 +389,7 @@ where
|
||||||
"starting sync, obtaining new tips"
|
"starting sync, obtaining new tips"
|
||||||
);
|
);
|
||||||
if let Err(e) = self.obtain_tips().await {
|
if let Err(e) = self.obtain_tips().await {
|
||||||
warn!(?e, "error obtaining tips");
|
info!("temporary error obtaining tips: {:#}", e);
|
||||||
return Err(());
|
return Err(());
|
||||||
}
|
}
|
||||||
self.update_metrics();
|
self.update_metrics();
|
||||||
|
@ -438,7 +438,7 @@ where
|
||||||
);
|
);
|
||||||
|
|
||||||
if let Err(e) = self.extend_tips().await {
|
if let Err(e) = self.extend_tips().await {
|
||||||
warn!(?e, "error extending tips");
|
info!("temporary error extending tips: {:#}", e);
|
||||||
return Err(());
|
return Err(());
|
||||||
}
|
}
|
||||||
self.update_metrics();
|
self.update_metrics();
|
||||||
|
|
Loading…
Reference in New Issue