From eafb01dfff39f4732767e43d1b8061f179454846 Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" <6406592+v0y4g3r@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:05:03 +0800 Subject: [PATCH] chore: suppress list warning (#5280) chore/suppress-list-warning: ### Update logging level in `intermediate.rs` - Changed logging level from `warn` to `debug` for unexpected directory entries in index creation. - Added `debug` to the `common_telemetry` import to support the logging level change. --- src/mito2/src/sst/index/intermediate.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mito2/src/sst/index/intermediate.rs b/src/mito2/src/sst/index/intermediate.rs index fd8845f96a..0c0497ad65 100644 --- a/src/mito2/src/sst/index/intermediate.rs +++ b/src/mito2/src/sst/index/intermediate.rs @@ -16,7 +16,7 @@ use std::path::PathBuf; use async_trait::async_trait; use common_error::ext::BoxedError; -use common_telemetry::warn; +use common_telemetry::{debug, warn}; use futures::{AsyncRead, AsyncWrite}; use index::error as index_error; use index::error::Result as IndexResult; @@ -189,7 +189,8 @@ impl ExternalTempFileProvider for TempFileProvider { for entry in entries { if entry.metadata().is_dir() { - warn!("Unexpected entry in index creation dir: {:?}", entry.path()); + // todo(hl): we can keep this warning once we find a way to filter self in list result. + debug!("Unexpected entry in index creation dir: {:?}", entry.path()); continue; }