Skip to content

Commit

Permalink
chore: replace print statements from logs (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
milenkovicm authored Jan 16, 2025
1 parent e5e50e9 commit 9051983
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion ballista/core/src/consistent_hash/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ mod test {

let keys = vec!["1", "4", "5", "3", "2"];
for (i, key) in keys.iter().enumerate() {
// println!("{}", consistent_hash.get(key.as_bytes()).unwrap().name());
assert_eq!(
consistent_hash.get(key.as_bytes()).unwrap().name(),
nodes[i].name()
Expand Down
3 changes: 2 additions & 1 deletion ballista/core/src/diagram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use datafusion::physical_plan::joins::HashJoinExec;
use datafusion::physical_plan::projection::ProjectionExec;
use datafusion::physical_plan::sorts::sort::SortExec;
use datafusion::physical_plan::ExecutionPlan;
use log::warn;
use std::fs::File;
use std::io::{BufWriter, Write};
use std::sync::atomic::{AtomicUsize, Ordering};
Expand Down Expand Up @@ -110,7 +111,7 @@ fn build_exec_plan_diagram(
{
"CoalescePartitionsExec"
} else {
println!("Unknown: {plan:?}");
warn!("Unknown: {plan:?}");
"Unknown"
};

Expand Down
2 changes: 1 addition & 1 deletion ballista/scheduler/src/state/task_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ impl<T: 'static + AsLogicalPlan, U: 'static + AsExecutionPlan> TaskManager<T, U>

graph.revive();

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

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

Expand Down

0 comments on commit 9051983

Please sign in to comment.