log::debug all Monero RPC errors

This commit is contained in:
Luke Parker 2023-11-05 00:02:58 -04:00
parent deecd77aec
commit 257323c1e5
No known key found for this signature in database

View file

@ -182,11 +182,10 @@ impl PartialEq for Monero {
impl Eq for Monero {} impl Eq for Monero {}
fn map_rpc_err(err: RpcError) -> NetworkError { fn map_rpc_err(err: RpcError) -> NetworkError {
if let RpcError::ConnectionError(e) = &err {
log::debug!("Monero ConnectionError: {e}");
}
if let RpcError::InvalidNode(reason) = &err { if let RpcError::InvalidNode(reason) = &err {
log::error!("Monero RpcError::InvalidNode({reason})"); log::error!("Monero RpcError::InvalidNode({reason})");
} else {
log::debug!("Monero RpcError {err:?}");
} }
NetworkError::ConnectionError NetworkError::ConnectionError
} }