Fix embedded milvus log bug (#26864)

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
pull/26872/head
zhagnlu 2023-09-06 14:27:14 +08:00 committed by GitHub
parent bd4b842153
commit 9b3e744b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -40,10 +40,11 @@ KnowhereInitImpl(const char* conf_file) {
#ifdef EMBEDDED_MILVUS
// always disable all logs for embedded milvus
google::SetCommandLineOption("minloglevel", "4");
#endif
#else
if (conf_file != nullptr) {
gflags::SetCommandLineOption("flagfile", conf_file);
}
#endif
};
std::call_once(init_knowhere_once_, init);