summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <git@iximeow.net>2022-12-26 00:53:34 +0000
committeriximeow <git@iximeow.net>2022-12-26 00:53:34 +0000
commita4dcaedc05c667a293d98848fbecd76c8708a298 (patch)
tree251ed716672065e1c6130c0dc40ba0ebf8925f21
parent567081631e846b241039a112a11ead101a0aefc8 (diff)
more logging
-rw-r--r--src/ci_driver.rs2
1 files changed, 2 insertions, 0 deletions
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<PathBuf> {
}
async fn activate_job(dbctx: Arc<DbCtx>, job: &PendingJob, clients: &mut mpsc::Receiver<RunnerClient>) -> 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<DbCtx>, mpsc::Sender<RunnerClient>)>, 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 => {