From c7600975afe9a2b13d33c10cc081e5de4b0d8270 Mon Sep 17 00:00:00 2001 From: licunlong Date: Wed, 31 May 2023 10:51:33 +0800 Subject: [PATCH 1/9] fix: remove some debug message, no functional change --- coms/socket/src/mng.rs | 2 -- core/bin/unit/notify.rs | 2 -- libs/event/tests/inotify.rs | 1 - libs/event/tests/io.rs | 1 - libs/event/tests/signal.rs | 1 - 5 files changed, 7 deletions(-) diff --git a/coms/socket/src/mng.rs b/coms/socket/src/mng.rs index e7a6a01..33b9812 100644 --- a/coms/socket/src/mng.rs +++ b/coms/socket/src/mng.rs @@ -848,8 +848,6 @@ impl Source for SocketMngPort { } fn dispatch(&self, _: &Events) -> i32 { - println!("Dispatching IO!"); - self.reli().set_last_frame2( ReliLastFrame::SubManager as u32, UnitType::UnitSocket as u32, diff --git a/core/bin/unit/notify.rs b/core/bin/unit/notify.rs index cb05330..f824725 100644 --- a/core/bin/unit/notify.rs +++ b/core/bin/unit/notify.rs @@ -332,8 +332,6 @@ impl Source for Notify { } fn dispatch(&self, _e: &Events) -> i32 { - log::debug!("begin to dispatch notify event"); - self.reli.set_last_frame1(ReliLastFrame::Notify as u32); let ret = self.notify_dispatch(); self.reli.clear_last_frame(); diff --git a/libs/event/tests/inotify.rs b/libs/event/tests/inotify.rs index 5fb3f5f..e9bdf72 100644 --- a/libs/event/tests/inotify.rs +++ b/libs/event/tests/inotify.rs @@ -49,7 +49,6 @@ mod test { } fn dispatch(&self, e: &Events) -> i32 { - println!("Dispatching inotify!"); e.set_exit(); 0 } diff --git a/libs/event/tests/io.rs b/libs/event/tests/io.rs index 292ed16..be79494 100644 --- a/libs/event/tests/io.rs +++ b/libs/event/tests/io.rs @@ -54,7 +54,6 @@ mod test { } fn dispatch(&self, _: &Events) -> i32 { - println!("Dispatching IO!"); 0 } diff --git a/libs/event/tests/signal.rs b/libs/event/tests/signal.rs index 3a54812..961bd5a 100644 --- a/libs/event/tests/signal.rs +++ b/libs/event/tests/signal.rs @@ -47,7 +47,6 @@ impl Source for Signals { } fn dispatch(&self, e: &Events) -> i32 { - println!("Dispatching signal!"); match e.read_signals() { Ok(Some(info)) => { println!("read signo: {:?}", info.ssi_signo); -- 2.30.2