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 {}
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
}