log cleanup

This commit is contained in:
John Smith
2022-12-10 13:16:26 -05:00
parent a44794ab98
commit 6753fe01a1
10 changed files with 18 additions and 23 deletions

View File

@@ -1344,13 +1344,8 @@ impl RPCProcessor {
Ok(v) => v,
};
cfg_if::cfg_if! {
if #[cfg(debug_assertions)] {
network_result_value_or_log!(warn res => {});
} else {
network_result_value_or_log!(debug res => {});
}
}
network_result_value_or_log!(res => {});
}
}

View File

@@ -26,7 +26,7 @@ impl RPCProcessor {
// Send the validate_dial_info request
// This can only be sent directly, as relays can not validate dial info
network_result_value_or_log!(debug self.statement(Destination::direct(peer), statement)
network_result_value_or_log!(self.statement(Destination::direct(peer), statement)
.await? => {
return Ok(false);
}
@@ -144,7 +144,7 @@ impl RPCProcessor {
// Send the validate_dial_info request
// This can only be sent directly, as relays can not validate dial info
network_result_value_or_log!(debug self.statement(Destination::direct(peer), statement)
network_result_value_or_log!(self.statement(Destination::direct(peer), statement)
.await? => {
continue;
}