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.
This commit is contained in:
Lei, HUANG
2025-01-03 17:05:03 +08:00
committed by Yingwen
parent b0de816d3d
commit eafb01dfff

View File

@@ -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;
}