chore: add some traces (#2127)

This commit is contained in:
Matthias Seitz
2023-04-05 17:22:09 +02:00
committed by GitHub
parent 7c18ba8ed3
commit c1d128eb7a
2 changed files with 4 additions and 1 deletions

View File

@@ -153,7 +153,6 @@ where
if pipeline_min_progress < head_block_number {
self.require_pipeline_run(PipelineTarget::Head);
}
PayloadStatus::from_status(PayloadStatusEnum::Valid)
}
Err(error) => {
@@ -178,8 +177,10 @@ where
}
}
} else {
trace!(target: "consensus::engine", "Pipeline is syncing, skipping forkchoice update");
PayloadStatus::from_status(PayloadStatusEnum::Syncing)
};
trace!(target: "consensus::engine", ?state, ?status, "Returning forkchoice status");
Ok(ForkchoiceUpdated::new(status))
}

View File

@@ -222,6 +222,8 @@ where
.instrument(info_span!("execute", stage = %stage_id))
.await?;
trace!(target: "sync::pipeline", stage = %stage_id, ?next, "Completed stage");
match next {
ControlFlow::NoProgress { stage_progress } => {
if let Some(progress) = stage_progress {