chore: improve tree traces (#2781)

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
Matthias Seitz
2023-05-22 16:24:44 +02:00
committed by GitHub
parent 7273ce8028
commit 9cd7b4130f
2 changed files with 6 additions and 3 deletions

View File

@ -412,7 +412,7 @@ where
self.update_canon_chain(&state)?;
}
self.listeners.notify(BeaconConsensusEngineEvent::ForkchoiceUpdated(state));
trace!(target: "consensus::engine", ?state, status = ?payload_response, "Returning forkchoice status");
trace!(target: "consensus::engine", status = ?payload_response, ?state, "Returning forkchoice status ");
return Ok(payload_response)
}
@ -438,7 +438,8 @@ where
};
self.listeners.notify(BeaconConsensusEngineEvent::ForkchoiceUpdated(state));
trace!(target: "consensus::engine", ?state, ?status, "Returning forkchoice status");
trace!(target: "consensus::engine", ?status, ?state, "Returning forkchoice status");
Ok(OnForkChoiceUpdated::valid(status))
}