From 9d8bce2a08cdd9d10371d6d471abb7e044459404 Mon Sep 17 00:00:00 2001 From: Fimeg Date: Sat, 25 Jul 2026 15:08:47 -0400 Subject: [PATCH] =?UTF-8?q?sessiond:=20log=20transitions=20prev=20?= =?UTF-8?q?=E2=86=92=20next=20(args=20were=20next,=20next,=20prev)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sessiond/device_state.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sessiond/device_state.rs b/src/sessiond/device_state.rs index 97cc070..c36a612 100644 --- a/src/sessiond/device_state.rs +++ b/src/sessiond/device_state.rs @@ -774,10 +774,10 @@ impl DeviceStateMachine { return false; } self.state = next; - info!( - "[device-state] {:?} → {:?} (from {:?})", - next, next, prev - ); + // Log the pair the right way round. This read + // "Locked → Locked (from Active)" on the first live run, which looks + // like a refused self-transition rather than the real Active → Locked. + info!("[device-state] {:?} → {:?}", prev, next); // Forensic: record the successful transition let snapshot = StateSnapshot { device_state: self.state,