diff --git a/src/coordinator_handler/api.rs b/src/coordinator_handler/api.rs index a93b6a3..ac39cf9 100644 --- a/src/coordinator_handler/api.rs +++ b/src/coordinator_handler/api.rs @@ -50,7 +50,8 @@ impl Api { let url = self.build_url(method)?; let request_body = serde_json::to_string(req)?; - log::info!("[coordinator client], {method}, request: {request_body}"); + log::info!("[coordinator client], {method}, sent request"); + log::debug!("[coordinator client], {method}, request: {request_body}"); let response = self .client .post(url) @@ -62,10 +63,10 @@ impl Api { .await?; if response.status() != http::status::StatusCode::OK { - log::error!( - "[coordinator client], {method}, status not ok: {}", - response.status() - ); + // log::error!( + // "[coordinator client], {method}, status not ok: {}", + // response.status() + // ); anyhow::bail!( "[coordinator client], {method}, status not ok: {}", response.status() @@ -74,7 +75,8 @@ impl Api { let response_body = response.text().await?; - log::info!("[coordinator client], {method}, response: {response_body}"); + log::info!("[coordinator client], {method}, received response"); + log::debug!("[coordinator client], {method}, response: {response_body}"); serde_json::from_str(&response_body).map_err(|e| anyhow::anyhow!(e)) } diff --git a/src/prover/mod.rs b/src/prover/mod.rs index b770a3a..2cfb999 100644 --- a/src/prover/mod.rs +++ b/src/prover/mod.rs @@ -148,7 +148,8 @@ impl Prover { let submit_proof_req = SubmitProofRequest { uuid: coordinator_task_uuid.clone(), task_id: coordinator_task_id.clone(), - task_type: task.circuit_type, + // task_type: task.circuit_type, // TODO: task.circuit_type is incorrect atm + task_type, status: ProofStatus::Ok, proof: task.proof.unwrap(), failure_type: None,