From e27b050a093df37719a966e18e49d940105202ed Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 10 Apr 2024 11:47:14 +0100 Subject: [PATCH] feat(server): log returned status for next branch --- src/server/actors/repo/status.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/actors/repo/status.rs b/src/server/actors/repo/status.rs index 345048ec..2548ea88 100644 --- a/src/server/actors/repo/status.rs +++ b/src/server/actors/repo/status.rs @@ -1,4 +1,5 @@ use actix::prelude::*; +use tracing::info; use crate::server::{ config::{self, ForgeType}, @@ -19,6 +20,7 @@ pub async fn check_next( forge::forgejo::get_commit_status(next.clone(), repo_details, net).await } }; + info!(?status, "Checking next branch status"); match status { Status::Pass => { addr.do_send(AdvanceMainTo(next)); @@ -30,6 +32,7 @@ pub async fn check_next( } } +#[derive(Debug)] pub enum Status { #[allow(dead_code)] // TODO: (#13) remove this when we have results from the forge Pass,