Skip to content

Commit 41d1da5

Browse files
committed
log level
1 parent d2b24f0 commit 41d1da5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

prover/src/threadpool/prove.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::sync::Arc;
1414
use tempfile::tempdir;
1515
use tokio::sync::broadcast::Sender;
1616
use tokio::sync::Mutex;
17-
use tracing::trace;
17+
use tracing::{info, trace};
1818

1919
#[allow(clippy::too_many_arguments)]
2020
pub async fn prove(
@@ -46,7 +46,7 @@ pub async fn prove(
4646
let start = tokio::time::Instant::now();
4747
let prove_status = paths.prove_command().spawn()?.wait().await?;
4848
let elapsed = start.elapsed();
49-
trace!(
49+
info!(
5050
"Prover finished in {:?} ms for job: {}",
5151
elapsed.as_millis(),
5252
job_id

prover/src/threadpool/run.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use tokio::{
1414
sync::{broadcast::Sender, Mutex},
1515
time::Instant,
1616
};
17-
use tracing::trace;
17+
use tracing::info;
1818

1919
use crate::{
2020
errors::ProverError,
@@ -75,7 +75,7 @@ pub async fn run(
7575
let result = program_input
7676
.prepare_and_run(&RunPaths::from(&paths), run_mode.clone(), job_id)
7777
.await;
78-
trace!("Trace generated for job {}", job_id);
78+
info!("Trace generated for job {}", job_id);
7979
let sender = sse_tx.lock().await;
8080
if result.is_ok() {
8181
let runner_result = match run_mode {
@@ -217,10 +217,10 @@ async fn generate_pie(
217217
command: Command,
218218
job_id: u64,
219219
) -> Result<(), ProverError> {
220-
trace!("Generating PIE for job {}", job_id);
220+
info!("Generating PIE for job {}", job_id);
221221
let start = Instant::now();
222222
command_run(command).await?;
223-
trace!(
223+
info!(
224224
"PIE generated in {:?}ms, for job {}",
225225
start.elapsed().as_millis(),
226226
job_id
@@ -233,13 +233,13 @@ async fn generate_pie(
233233
}
234234

235235
async fn run_cairo(command: Command, job_id: u64) -> Result<(), ProverError> {
236-
trace!(
236+
info!(
237237
"Running cairo-run to generate trace from PIE for job {}",
238238
job_id
239239
);
240240
let start = Instant::now();
241241
command_run(command).await?;
242-
trace!(
242+
info!(
243243
"Trace generated in {:?}ms, for job {}",
244244
start.elapsed().as_millis(),
245245
job_id

0 commit comments

Comments
 (0)