Skip to content

Commit 9051983

Browse files
authored
chore: replace print statements from logs (#1162)
1 parent e5e50e9 commit 9051983

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ballista/core/src/consistent_hash/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ mod test {
309309

310310
let keys = vec!["1", "4", "5", "3", "2"];
311311
for (i, key) in keys.iter().enumerate() {
312-
// println!("{}", consistent_hash.get(key.as_bytes()).unwrap().name());
313312
assert_eq!(
314313
consistent_hash.get(key.as_bytes()).unwrap().name(),
315314
nodes[i].name()

ballista/core/src/diagram.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use datafusion::physical_plan::joins::HashJoinExec;
2727
use datafusion::physical_plan::projection::ProjectionExec;
2828
use datafusion::physical_plan::sorts::sort::SortExec;
2929
use datafusion::physical_plan::ExecutionPlan;
30+
use log::warn;
3031
use std::fs::File;
3132
use std::io::{BufWriter, Write};
3233
use std::sync::atomic::{AtomicUsize, Ordering};
@@ -110,7 +111,7 @@ fn build_exec_plan_diagram(
110111
{
111112
"CoalescePartitionsExec"
112113
} else {
113-
println!("Unknown: {plan:?}");
114+
warn!("Unknown: {plan:?}");
114115
"Unknown"
115116
};
116117

ballista/scheduler/src/state/task_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ impl<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> TaskManager<T, U>
422422

423423
graph.revive();
424424

425-
println!("Saving job with status {:?}", graph.status());
425+
info!("Saving job with status {:?}", graph.status());
426426

427427
self.state.save_job(job_id, &graph).await?;
428428

0 commit comments

Comments
 (0)