chore: clean up some logging
All checks were successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

This commit is contained in:
Paul Campbell 2024-04-12 17:41:09 +01:00
parent 4e6a306a72
commit 8c4ad4b534
2 changed files with 4 additions and 5 deletions

View file

@ -128,6 +128,7 @@ pub async fn advance_next(
warn!("Can't advance next to commit '{}': {}", commit, problem);
return;
}
info!("Advancing next to commit '{}'", commit);
match reset(
&repo_config.branches().next(),
commit,
@ -135,7 +136,6 @@ pub async fn advance_next(
&repo_details,
) {
Ok(_) => {
info!("Success");
// TODO : (#18) sleep and restart while we don't have webhooks
tokio::time::sleep(std::time::Duration::from_secs(10)).await;
addr.do_send(ValidateRepo);
@ -185,6 +185,7 @@ pub async fn advance_main(
repo_details: config::RepoDetails,
repo_config: config::RepoConfig,
) {
info!("Advancing main to next");
match reset(
&repo_config.branches().main(),
next,

View file

@ -22,14 +22,12 @@ pub async fn check_next(
forge::forgejo::get_commit_status(next.clone(), &repo_details, net).await
}
};
info!(?status, "Checking next branch status");
info!(?status, "Checking next branch");
match status {
Status::Pass => {
addr.do_send(AdvanceMainTo(next));
}
Status::Pending => {
info!("Checks are pending");
}
Status::Pending => {}
Status::Fail => {
warn!("Checks have failed");
}