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,