Просмотр исходного кода

doc: adjust log level on session/mod.rs

draoi 2 лет назад
Родитель
Сommit
efb3d05449
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/net/session/mod.rs

+ 3 - 3
src/net/session/mod.rs

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