mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 02:05:41 +00:00
fix: change error log to info (#46955)
issue: https://github.com/milvus-io/milvus/issues/45590 --------- Signed-off-by: SpadeA <tangchenjie1210@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use crate::error::Result;
|
||||
use crate::log::init_log;
|
||||
use core::slice;
|
||||
use log::error;
|
||||
use log::info;
|
||||
use std::collections::HashSet;
|
||||
use std::ffi::CStr;
|
||||
use std::ffi::{c_char, c_void};
|
||||
@@ -16,7 +16,10 @@ pub fn c_ptr_to_str(ptr: *const c_char) -> Result<&'static str> {
|
||||
pub fn index_exist(path: &str) -> bool {
|
||||
let Ok(dir) = MmapDirectory::open(path) else {
|
||||
init_log();
|
||||
error!("tantivy index_exist: failed to open directory: {}", path);
|
||||
info!(
|
||||
"tantivy index_exist: failed to open directory: {}, (used for debug now)",
|
||||
path
|
||||
);
|
||||
return false;
|
||||
};
|
||||
let exists = Index::exists(&dir).unwrap();
|
||||
@@ -30,8 +33,8 @@ pub fn index_exist(path: &str) -> bool {
|
||||
.collect()
|
||||
})
|
||||
.unwrap_or_default();
|
||||
error!(
|
||||
"tantivy index_exist: meta.json not found at {}, files: {:?}",
|
||||
info!(
|
||||
"tantivy index_exist: meta.json not found at {}, files: {:?}, (used for debug now)",
|
||||
path, files
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user