feat(engine): add error logging in state_hook (#13252)

Co-authored-by: Federico Gimenez <fgimenez@users.noreply.github.com>
This commit is contained in:
Miguel Oliveira
2024-12-10 05:39:43 -03:00
committed by GitHub
parent b3752cd2e8
commit d856c8e5bc

View File

@@ -283,7 +283,9 @@ where
let state_hook = StateHookSender::new(self.tx.clone());
move |state: &EvmState| {
let _ = state_hook.send(StateRootMessage::StateUpdate(state.clone()));
if let Err(error) = state_hook.send(StateRootMessage::StateUpdate(state.clone())) {
error!(target: "engine::root", ?error, "Failed to send state update");
}
}
}