Watch
1
0
Fork
You've already forked souveraine
0

sessiond: log transitions prev → next (args were next, next, prev)

This commit is contained in:
Fimeg 2026-07-25 15:08:47 -04:00
commit 9d8bce2a08

View file

@ -774,10 +774,10 @@ impl DeviceStateMachine {
return false; return false;
} }
self.state = next; self.state = next;
info!( // Log the pair the right way round. This read
"[device-state] {:?} → {:?} (from {:?})", // "Locked → Locked (from Active)" on the first live run, which looks
next, next, prev // like a refused self-transition rather than the real Active → Locked.
); info!("[device-state] {:?} → {:?}", prev, next);
// Forensic: record the successful transition // Forensic: record the successful transition
let snapshot = StateSnapshot { let snapshot = StateSnapshot {
device_state: self.state, device_state: self.state,