chore: clean up some logging
This commit is contained in:
parent
4e6a306a72
commit
8c4ad4b534
2 changed files with 4 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue