Skip to content

Commit

Permalink
chore: suppress list warning (#5280)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
v0y4g3r authored and evenyag committed Jan 3, 2025
1 parent b0de816 commit eafb01d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mito2/src/sst/index/intermediate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit eafb01d

Please sign in to comment.