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;
}
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,