From a4dcaedc05c667a293d98848fbecd76c8708a298 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 26 Dec 2022 00:53:34 +0000 Subject: more logging --- src/ci_driver.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/ci_driver.rs b/src/ci_driver.rs index 35c9b07..d70580a 100644 --- a/src/ci_driver.rs +++ b/src/ci_driver.rs @@ -46,6 +46,7 @@ fn reserve_artifacts_dir(job: u64) -> std::io::Result { } async fn activate_job(dbctx: Arc, job: &PendingJob, clients: &mut mpsc::Receiver) -> Result<(), String> { + eprintln!("activating job {:?}", job); let connection = dbctx.conn.lock().unwrap(); let (repo_id, remote_git_url): (u64, String) = connection .query_row("select repo_id, remote_git_url from remotes where id=?1", [job.remote_id], |row| Ok((row.get_unwrap(0), row.get_unwrap(1)))) @@ -323,6 +324,7 @@ impl fmt::Debug for RunnerClient { #[axum_macros::debug_handler] async fn handle_artifact(State(ctx): State<(Arc, mpsc::Sender)>, headers: HeaderMap, artifact_content: BodyStream) -> impl IntoResponse { + eprintln!("artifact request"); let job_token = match headers.get("x-job-token") { Some(job_token) => job_token.to_str().expect("valid string"), None => { -- cgit v1.1