fix: add debug logging for shared state synchronization in ClientState

This commit is contained in:
MayaTheShy
2025-11-08 21:06:34 -05:00
parent e1aeaa59a1
commit 083e36c4e3

View File

@@ -55,9 +55,16 @@ impl ClientState for BridgeState {
if let Ok(ctrl) = CTRL.lock() {
if let Some(shared) = &ctrl.shared_state {
if let Ok(shared_state) = shared.lock() {
eprintln!("[bridge/on_frame] Syncing {} nodes from shared_state", shared_state.nodes.len());
self.nodes = shared_state.nodes.clone();
} else {
eprintln!("[bridge/on_frame] Failed to lock shared_state");
}
} else {
eprintln!("[bridge/on_frame] No shared_state in ctrl");
}
} else {
eprintln!("[bridge/on_frame] Failed to lock CTRL");
}
}
}