From f12996a1ab2301d3eb9a577da5fc8cd12ce98c4c Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 9 May 2026 16:31:12 +0800 Subject: [PATCH] logger loop must never exit, handle exit message with panic --- services/xous-log/src/platform/hosted/implementation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/xous-log/src/platform/hosted/implementation.rs b/services/xous-log/src/platform/hosted/implementation.rs index 7c21103c0..eb5c90dee 100644 --- a/services/xous-log/src/platform/hosted/implementation.rs +++ b/services/xous-log/src/platform/hosted/implementation.rs @@ -25,7 +25,7 @@ impl Output { loop { match self.rx.recv_timeout(std::time::Duration::from_millis(50)) { Ok(msg) => match msg { - ControlMessage::Exit => break, + ControlMessage::Exit => panic!("Logger exit reached"), ControlMessage::Text(s) => print!("{}", s), ControlMessage::Byte(s) => { let mut handle = self.stdout.lock();