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;
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue