doc: adjust log level on session/mod.rs

This commit is contained in:
draoi
2024-05-19 10:00:24 +02:00
parent 85fb7bc684
commit efb3d05449

View File

@@ -22,7 +22,7 @@ use std::{
};
use async_trait::async_trait;
use log::debug;
use log::{debug, trace};
use smol::Executor;
use super::{channel::ChannelPtr, hosts::HostColor, p2p::P2pPtr, protocol::ProtocolVersion};
@@ -105,7 +105,7 @@ pub trait Session: Sync {
channel: ChannelPtr,
executor: Arc<Executor<'_>>,
) -> Result<()> {
debug!(target: "net::session::register_channel()", "[START]");
trace!(target: "net::session::register_channel()", "[START]");
// Protocols should all be initialized but not started.
// We do this so that the protocols can begin receiving and buffering
@@ -147,7 +147,7 @@ pub trait Session: Sync {
protocol.start(executor.clone()).await?;
}
debug!(target: "net::session::register_channel()", "[END]");
trace!(target: "net::session::register_channel()", "[END]");
Ok(())
}