Skip to content

Commit 992f525

Browse files
v0y4g3revenyag
authored andcommitted
chore: suppress list warning (GreptimeTeam#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.
1 parent 6b92160 commit 992f525

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/mito2/src/sst/index/intermediate.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::path::PathBuf;
1616

1717
use async_trait::async_trait;
1818
use common_error::ext::BoxedError;
19-
use common_telemetry::warn;
19+
use common_telemetry::{debug, warn};
2020
use futures::{AsyncRead, AsyncWrite};
2121
use index::error as index_error;
2222
use index::error::Result as IndexResult;
@@ -189,7 +189,8 @@ impl ExternalTempFileProvider for TempFileProvider {
189189

190190
for entry in entries {
191191
if entry.metadata().is_dir() {
192-
warn!("Unexpected entry in index creation dir: {:?}", entry.path());
192+
// todo(hl): we can keep this warning once we find a way to filter self in list result.
193+
debug!("Unexpected entry in index creation dir: {:?}", entry.path());
193194
continue;
194195
}
195196

0 commit comments

Comments
 (0)