From 12bd05815206b2abd74cb6cd8e5c2c5871ebda48 Mon Sep 17 00:00:00 2001 From: lubeilin <1791778603@qq.com> Date: Sun, 23 Apr 2023 18:44:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switch/src/core/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/switch/src/core/mod.rs b/switch/src/core/mod.rs index bafaa3f..d295174 100644 --- a/switch/src/core/mod.rs +++ b/switch/src/core/mod.rs @@ -28,6 +28,7 @@ pub struct Switch { impl Switch { pub fn start(config: Config) -> crate::Result { + log::info!("config:{:?}",config); let (mut channel, punch, idle) = Boot::new::(80, 15000, 0)?; let response = registration_handler::registration(&mut channel, config.server_address, config.token.clone(), config.device_id.clone(), config.name.clone())?; let register = Arc::new(registration_handler::Register::new(channel.sender()?, config.server_address, config.token.clone(), config.device_id.clone(), config.name.clone())); @@ -63,6 +64,7 @@ impl Switch { for _ in 0..2 { recv_handler::start(channel_recv_handler.try_clone()?); } + log::info!("switch启动成功"); Ok(Switch { name: config.name, current_device,