Skip to content

Commit

Permalink
log::debug all Monero RPC errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Nov 5, 2023
1 parent deecd77 commit 257323c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions processor/src/networks/monero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,10 @@ impl PartialEq for Monero {
impl Eq for Monero {}

fn map_rpc_err(err: RpcError) -> NetworkError {
if let RpcError::ConnectionError(e) = &err {
log::debug!("Monero ConnectionError: {e}");
}
if let RpcError::InvalidNode(reason) = &err {
log::error!("Monero RpcError::InvalidNode({reason})");
} else {
log::debug!("Monero RpcError {err:?}");
}
NetworkError::ConnectionError
}
Expand Down

0 comments on commit 257323c

Please sign in to comment.