Always log whole causality chain for errors.

This commit is contained in:
Philipp Hoenisch 2021-05-11 11:08:33 +10:00
parent c011e95062
commit 316f95c65b
No known key found for this signature in database
GPG key ID: E5F8E74C672BC666
8 changed files with 40 additions and 47 deletions

View file

@ -157,13 +157,12 @@ impl Wallet {
Err(error) => {
tracing::warn!(
address = %self.main_address,
%error,
"Transferring Monero back to default wallet failed",
"Transferring Monero back to default wallet failed. Error {:#}", error
);
}
},
Err(error) => {
tracing::warn!(%error, "Refreshing the generated wallet failed");
tracing::warn!("Refreshing the generated wallet failed. Error {:#}", error);
}
}
@ -320,8 +319,7 @@ where
Err(error) => {
tracing::debug!(
%txid,
%error,
"Failed to retrieve tx from blockchain"
"Failed to retrieve tx from blockchain. Error {:#}", error
);
continue; // treating every error as transient and retrying
// is obviously wrong but the jsonrpc client is