node: Fix a few logging-related things

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2023-01-17 11:01:36 +01:00
parent 97d4729fa4
commit 3bedb4438e
3 changed files with 14 additions and 6 deletions
+5 -2
View File
@@ -31,8 +31,11 @@ use crate::worker::{WorkerReq, WorkerResp};
use crate::Link;
use crate::{address, service};
/// Peer session type.
pub type WireSession<G> = CypherSession<G, Sha256>;
/// Peer session type (read-only).
pub type WireReader = CypherReader<Sha256>;
/// Peer session type (write-only).
pub type WireWriter<G> = CypherWriter<G, Sha256>;
/// Reactor action.
@@ -572,8 +575,8 @@ where
while let Some(ev) = self.service.next() {
match ev {
Io::Write(node_id, msgs) => {
log::debug!(
target: "transport", "Sending {} message(s) to {}", msgs.len(), node_id
log::trace!(
target: "transport", "Writing {} message(s) to {}", msgs.len(), node_id
);
let fd = self.connected_fd_by_id(&node_id);
let mut data = Vec::new();