Skip to content

Commit

Permalink
fix: simplify the logs in query path (apache#770) (apache#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxiang1993 authored Mar 28, 2023
1 parent 516d43d commit b8b4422
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions analytic_engine/src/sst/parquet/async_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use common_util::{
time::InstantExt,
};
use futures::{future::BoxFuture, FutureExt, Stream, StreamExt, TryFutureExt};
use log::{debug, error, info};
use log::{debug, error};
use object_store::{ObjectStoreRef, Path};
use parquet::{
arrow::{async_reader::AsyncFileReader, ParquetRecordBatchStreamBuilder, ProjectionMask},
Expand Down Expand Up @@ -200,7 +200,7 @@ impl<'a> Reader<'a> {
meta_data.custom().parquet_filter.as_ref(),
)?;

info!(
debug!(
"Reader fetch record batches, path:{}, row_groups total:{}, after prune:{}",
self.path,
meta_data.parquet().num_row_groups(),
Expand All @@ -221,7 +221,7 @@ impl<'a> Reader<'a> {
let chunks_num = parallelism;
let chunk_size = target_row_groups.len() / parallelism;
self.metrics.parallelism = parallelism;
info!(
debug!(
"Reader fetch record batches parallelly, parallelism suggest:{}, real:{}, chunk_size:{}",
suggested_parallelism, parallelism, chunk_size
);
Expand Down Expand Up @@ -482,7 +482,7 @@ impl RecordBatchProjector {

impl Drop for RecordBatchProjector {
fn drop(&mut self) {
info!(
debug!(
"RecordBatchProjector dropped, path:{} rows:{}, cost:{}ms.",
self.path,
self.row_num,
Expand Down
2 changes: 1 addition & 1 deletion components/object_store/src/disk_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl DiskCache {
.into_string()
.unwrap();

info!("Remove disk cache, filename:{}.", &file_path);
debug!("Remove disk cache, filename:{}.", &file_path);
if let Err(e) = tokio::fs::remove_file(&file_path).await {
error!("Remove disk cache failed, file:{}, err:{}.", file_path, e);
}
Expand Down

0 comments on commit b8b4422

Please sign in to comment.