Skip to content

Commit

Permalink
fix(ci): Reduce log (risingwavelabs#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
liurenjie1024 authored Jun 20, 2022
1 parent eca9239 commit d04954f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ do
fi
done
if (( "$(du -sk ${PREFIX_LOG} | cut -f1)" > 4000 )) ; then
if (( "$(du -sk ${PREFIX_LOG} | cut -f1)" > 2000 )) ; then
echo "$(tput setaf 3)log size is significantly large ($(du -sh ${PREFIX_LOG} | cut -f1)).$(tput sgr0) Please disable unnecessary logs."
exit 1
fi
Expand Down
5 changes: 3 additions & 2 deletions src/batch/src/rpc/service/task_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ impl TaskService for BatchServiceImpl {
let plan = req.get_plan().expect("no plan found").clone();
let epoch = req.epoch;
let context = ComputeNodeContext::new(self.env.clone());
debug!(
trace!(
"local execute request: plan:{:?} with task id:{:?}",
plan, task_id
plan,
task_id
);
let task = BatchTaskExecution::new(task_id, plan, context, epoch)?;
let task = Arc::new(task);
Expand Down
2 changes: 1 addition & 1 deletion src/batch/src/task/task_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl<C: BatchTaskContext> BatchTaskExecution<C> {
sender.send(Some(data_chunk?)).await?;
}
None => {
debug!("data chunk stream shuts down");
trace!("data chunk stream shuts down");
sender.send(None).await?;
break;
}
Expand Down

0 comments on commit d04954f

Please sign in to comment.