mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-16 17:07:35 +00:00
log::debug all Monero RPC errors
This commit is contained in:
parent
deecd77aec
commit
257323c1e5
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue