mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-02 10:35:22 -05:00
feat: add debugging info for failed to fetch transaction
Add the jsonrpc error message and data to tracing calls to try debug #1061 "monero-wallet-rpc failed to fetch transaction"
This commit is contained in:
parent
b7e2e0805e
commit
7e4af68cba
@ -314,8 +314,13 @@ async fn wait_for_confirmations<C: monero_rpc::wallet::MoneroWalletRpc<reqwest::
|
|||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(proof) => proof,
|
Ok(proof) => proof,
|
||||||
Err(jsonrpc::Error::JsonRpc(jsonrpc::JsonRpcError { code: -1, .. })) => {
|
Err(jsonrpc::Error::JsonRpc(jsonrpc::JsonRpcError {
|
||||||
tracing::warn!(%txid, "`monero-wallet-rpc` failed to fetch transaction, may need to be restarted");
|
code: -1,
|
||||||
|
message,
|
||||||
|
data,
|
||||||
|
})) => {
|
||||||
|
tracing::debug!(message, ?data);
|
||||||
|
tracing::warn!(%txid, message, "`monero-wallet-rpc` failed to fetch transaction, may need to be restarted");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// TODO: Implement this using a generic proxy for each function call once https://github.com/thomaseizinger/rust-jsonrpc-client/issues/47 is fixed.
|
// TODO: Implement this using a generic proxy for each function call once https://github.com/thomaseizinger/rust-jsonrpc-client/issues/47 is fixed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user