sessiond: log transitions prev → next (args were next, next, prev)
This commit is contained in:
parent
aa3027845d
commit
9d8bce2a08
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue